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
Added temporary fix for the trailing null character from extension requests
Andrew Bastin4ea60d3431da
diff --git a/components/lenses/renderers/mixins/TextContentRendererMixin.js b/components/lenses/renderers/mixins/TextContentRendererMixin.jsindex 805276498..a01d610d8 100644--- a/components/lenses/renderers/mixins/TextContentRendererMixin.js+++ b/components/lenses/renderers/mixins/TextContentRendererMixin.js@@ -5,7 +5,12 @@ export default {computed: {responseBodyText() {if (typeof this.response.body === "string") return this.response.body- return new TextDecoder("utf-8").decode(this.response.body)+ else {+ const res = new TextDecoder("utf-8").decode(this.response.body)++ // HACK: Temporary trailing null character issue from the extension fix+ return res.replace(/\0+$/, "")+ }},},}