From 0d11fe45d476a99dcfa07feaa745ff69c5e7aca8 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 12 Jul 2021 21:32:37 -0700 Subject: [PATCH] fix --- packages/kit/src/core/adapter-utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/kit/src/core/adapter-utils.js b/packages/kit/src/core/adapter-utils.js index ca3f61fbab3f..fadbda59204b 100644 --- a/packages/kit/src/core/adapter-utils.js +++ b/packages/kit/src/core/adapter-utils.js @@ -10,9 +10,9 @@ export function isContentTypeTextual(content_type) { if (!content_type) return true; // defaults to json const [type] = content_type.split(';'); // get the mime type return ( - content_type === 'text/plain' || - content_type === 'application/json' || - content_type === 'application/x-www-form-urlencoded' || - content_type === 'multipart/form-data' + type === 'text/plain' || + type === 'application/json' || + type === 'application/x-www-form-urlencoded' || + type === 'multipart/form-data' ); }