Skip to content

Commit

Permalink
Merge pull request #936 from JohnMoehrke/patch-2
Browse files Browse the repository at this point in the history
Add Gherkin, json, xml, and text to AdjunctFileLoader.java
  • Loading branch information
grahamegrieve authored Aug 22, 2024
2 parents b929851 + 35eff11 commit 29167c0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@ private String determineContentType(String ext) {
return "image/jpeg";
} else if ("cql".equals(ext)) {
return "text/cql";
} else if ("feature".equals(ext)) {
return "text/x-gherkin";
} else if ("json".equals(ext)) {
return "application/json";
} else if ("xml".equals(ext)) {
return "application/xml";
} else if ("text".equals(ext)) {
return "text/plain";
} else if ("txt".equals(ext)) {
return "text/plain";
} else {
return null;
}
Expand Down

0 comments on commit 29167c0

Please sign in to comment.