Skip to content

Commit

Permalink
Update AdjunctFileLoader.java
Browse files Browse the repository at this point in the history
added json, xml, text, and txt
  • Loading branch information
JohnMoehrke authored Aug 13, 2024
1 parent e3bbb4e commit 35eff11
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ private String determineContentType(String 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 35eff11

Please sign in to comment.