Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
isJSONContentType returns false for null/undefined
Andrew Bastinf2b977c9414e
diff --git a/helpers/utils/contenttypes.js b/helpers/utils/contenttypes.jsindex d9f1d8177..efd94f729 100644--- a/helpers/utils/contenttypes.js+++ b/helpers/utils/contenttypes.js@@ -9,7 +9,7 @@ export const knownContentTypes = []export function isJSONContentType(contentType) {- if (contentType.includes(";")) {+ if (contentType && contentType.includes(";")) {const [justContentType] = contentType.split(";")return (