Skip to content

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

fix(raw-input): allow list parameter for any content type ending with 'json'

Leonardo Matos3f9ae7fecc9e
diff --git a/pages/index.vue b/pages/index.vue
index a594af062..30bc8b5ca 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1552,7 +1552,10 @@ export default {
* serialized by postwoman.
*/
canListParameters() {
- return ["application/json", "application/x-www-form-urlencoded"].includes(this.contentType)
+ return (
+ this.contentType === "application/x-www-form-urlencoded" ||
+ this.contentType.endsWith("json")
+ )
},
uri: {
get() {