From e0aede3fc418e8bb38fbac2113ee99bc8cee5cd4 Mon Sep 17 00:00:00 2001 From: Hydrophobefireman Date: Sun, 10 May 2020 21:26:44 +0530 Subject: [PATCH] Update index.vue --- pages/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 2e9ddb23c..8843c8ee8 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1938,7 +1938,7 @@ export default { if (["POST", "PUT", "PATCH"].includes(this.method)) { let requestBody = this.rawInput ? this.rawParams : this.rawRequestBody if (this.contentType.includes("json")) { - requestBody = `JSON.stringify("${requestBody}")` + requestBody = `JSON.stringify(${requestBody})` } else if (this.contentType.includes("x-www-form-urlencoded")) { requestBody = `"${requestBody}"` } @@ -1967,7 +1967,7 @@ export default { if (["POST", "PUT", "PATCH"].includes(this.method)) { let requestBody = this.rawInput ? this.rawParams : this.rawRequestBody if (this.contentType.includes("json")) { - requestBody = `JSON.stringify("${requestBody}")` + requestBody = `JSON.stringify(${requestBody})` } else if (this.contentType.includes("x-www-form-urlencoded")) { requestBody = `"${requestBody}"` }