Fixed bug in invalid JSON fallback
This commit is contained in:
@@ -83,7 +83,7 @@ export default {
|
|||||||
return JSON.stringify(JSON.parse(this.responseBodyText), null, 2)
|
return JSON.stringify(JSON.parse(this.responseBodyText), null, 2)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Most probs invalid JSON was returned, so drop prettification (should we warn ?)
|
// Most probs invalid JSON was returned, so drop prettification (should we warn ?)
|
||||||
return new this.responseBodyText()
|
return this.responseBodyText
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
responseType() {
|
responseType() {
|
||||||
|
|||||||
Reference in New Issue
Block a user