Added temporary fix for the trailing null character from extension
requests
This commit is contained in:
parent
9840ebfe33
commit
4ea60d3431
1 changed files with 6 additions and 1 deletions
|
|
@ -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+$/, "")
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue