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
Add quotation marks to fetch url
John87087c7eac8a
diff --git a/pages/index.vue b/pages/index.vueindex bf7673aca..93f73f3f4 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -615,7 +615,7 @@} else if (this.requestType == 'Fetch') {var requestString = [];var headers = [];- requestString.push('fetch(' + this.url + this.path + this.queryString + ', {\n')+ requestString.push('fetch("' + this.url + this.path + this.queryString + '", {\n')requestString.push(' method: "' + this.method + '",\n')if (this.auth === 'Basic') {var basic = this.httpUser + ':' + this.httpPassword;