Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix(req-body): ensure raw input if `!canListParameters`
Leonardo Matosdc771f51e836
diff --git a/pages/index.vue b/pages/index.vueindex c3bdee4b0..35a01acaf 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -1432,8 +1432,11 @@ export default {])},},- canListParameters(canToggleRaw) {- this.rawInput = !canToggleRaw+ canListParameters: {+ immediate: true,+ handler (canToggleRaw) {+ this.rawInput = !canToggleRaw+ }},contentType(contentType, oldContentType) {const getDefaultParams = contentType => {@@ -1544,11 +1547,7 @@ export default {"text/plain",],canListParameters() {- return [- "application/json",- "application/hal+json",- "application/x-www-form-urlencoded",- ].includes(this.contentType)+ this.contentType === "application/x-www-form-urlencoded"},uri: {get() {@@ -1765,7 +1764,7 @@ export default {},rawInput: {get() {- return this.$store.state.request.rawInput+ return this.canListParameter ? this.$store.state.request.rawInput : true},set(value) {this.$store.commit("setState", { value, attribute: "rawInput" })