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
fix: test script not parsing json object if json content type
Andrew Bastina3eafa54faa7
diff --git a/packages/hoppscotch-app/helpers/RequestRunner.ts b/packages/hoppscotch-app/helpers/RequestRunner.tsindex 62fb0379e..7caf1564d 100644--- a/packages/hoppscotch-app/helpers/RequestRunner.ts+++ b/packages/hoppscotch-app/helpers/RequestRunner.ts@@ -17,7 +17,7 @@ import { getRESTRequest, setRESTTestResults } from "~/newstore/RESTSession"const getTestableBody = (res: HoppRESTResponse & { type: "success" }) => {const contentTypeHeader = res.headers.find(- (h) => h.value.toLowerCase() === "content-type"+ (h) => h.key.toLowerCase() === "content-type")const rawBody = new TextDecoder("utf-8").decode(res.body)