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: make headers property writable

jamesgeorge0076e537eed584a
diff --git a/pages/index.vue b/pages/index.vue
index c4595426d..0774cc8d7 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1260,7 +1260,7 @@ export default {
return requestString.join("\n");
} else if (this.requestType == "Fetch") {
const requestString = [];
- const headers = [];
+ let headers = [];
requestString.push(
'fetch("' + this.url + this.pathName + this.queryString + '", {\n'
);