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
Fixed header inclusion mistake
Andrew Bastin5f79ca2872a1
diff --git a/pages/graphql.vue b/pages/graphql.vueindex 70e7768a7..0de838f2b 100644--- a/pages/graphql.vue+++ b/pages/graphql.vue@@ -315,16 +315,23 @@ export default {query: gql.getIntrospectionQuery()});+ let headers = {};+ this.headers.forEach((header) => {+ headers[header.key] = header.value;+ });+const reqOptions = {method: "post",url: this.url,headers: {- ...this.headers,+ ...headers,"content-type": "application/json"},data: query}+ console.log(reqOptions);+const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED? {method: "post",