From 194581812008c107b80f359b57bbf36c5e8a66c6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 23 Dec 2023 21:50:15 +0100 Subject: [PATCH] fix(http): remove `text/plain` check for content type #129 --- src/providers.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/providers.ts b/src/providers.ts index f63e19b..15ab81d 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -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