Skip to content

Commit

Permalink
fix(http): remove text/plain check for content type
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 23, 2023
1 parent cb82386 commit 1945818
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export const http: TemplateProvider = async (input, options) => {
},
});
const _contentType = head.headers.get("content-type") || "";
if (
_contentType.includes("application/json") ||
_contentType.includes("text/plain") /* GitHub raw */
) {
if (_contentType.includes("application/json")) {
return (await _httpJSON(input, options)) as TemplateInfo;
}
const filename = head.headers
Expand Down

0 comments on commit 1945818

Please sign in to comment.