Added temporary fix for the trailing null character from extension
requests
This commit is contained in:
@@ -5,7 +5,12 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
responseBodyText() {
|
responseBodyText() {
|
||||||
if (typeof this.response.body === "string") return this.response.body
|
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+$/, "")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user