Update index.vue

This commit is contained in:
Liyas Thomas
2020-03-22 09:56:53 +05:30
committed by GitHub
parent 2a8ba00024
commit ed4f1fe6f8

View File

@@ -1845,7 +1845,7 @@ export default {
}, },
rawRequestBody() { rawRequestBody() {
const { bodyParams, contentType } = this const { bodyParams, contentType } = this
if (contentType === "application/json") { if (contentType.endsWith("json")) {
try { try {
const obj = JSON.parse( const obj = JSON.parse(
`{${bodyParams `{${bodyParams