From 2afc87847d75c2990f69135f83da6ea01b28e7d1 Mon Sep 17 00:00:00 2001 From: Akash K <57758277+amk-dev@users.noreply.github.com> Date: Thu, 22 Jun 2023 23:40:09 +0530 Subject: [PATCH] fix: use --location param for url when parsing curl (#3152) --- .../src/components/http/Headers.vue | 2 +- .../src/components/http/RequestOptions.vue | 13 +++---------- .../src/helpers/curl/sub_helpers/url.ts | 4 +++- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/hoppscotch-common/src/components/http/Headers.vue b/packages/hoppscotch-common/src/components/http/Headers.vue index 2a13c18da5..5015843a8f 100644 --- a/packages/hoppscotch-common/src/components/http/Headers.vue +++ b/packages/hoppscotch-common/src/components/http/Headers.vue @@ -338,7 +338,7 @@ watch(workingHeaders, (headersList) => { // Sync logic between headers and working/bulk headers watch( - request.value.headers, + () => request.value.headers, (newHeadersList) => { // Sync should overwrite working headers const filteredWorkingHeaders = pipe( diff --git a/packages/hoppscotch-common/src/components/http/RequestOptions.vue b/packages/hoppscotch-common/src/components/http/RequestOptions.vue index 28e238b8f0..2281ab42a9 100644 --- a/packages/hoppscotch-common/src/components/http/RequestOptions.vue +++ b/packages/hoppscotch-common/src/components/http/RequestOptions.vue @@ -54,7 +54,8 @@