Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Update index.vue

Liyas Thomased4f1fe6f863
diff --git a/pages/index.vue b/pages/index.vue
index fda9b937a..068d18495 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1845,7 +1845,7 @@ export default {
},
rawRequestBody() {
const { bodyParams, contentType } = this
- if (contentType === "application/json") {
+ if (contentType.endsWith("json")) {
try {
const obj = JSON.parse(
`{${bodyParams