Fixed bug in invalid JSON fallback

This commit is contained in:
Andrew Bastin
2020-06-29 13:41:42 -04:00
parent 7778202439
commit 791fe70fd3

View File

@@ -83,7 +83,7 @@ export default {
return JSON.stringify(JSON.parse(this.responseBodyText), null, 2)
} catch (e) {
// Most probs invalid JSON was returned, so drop prettification (should we warn ?)
return new this.responseBodyText()
return this.responseBodyText
}
},
responseType() {