mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3152] [MERGED] fix: use --location param for url when parsing curl #4253
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3152
Author: @amk-dev
Created: 6/19/2023
Status: ✅ Merged
Merged: 6/22/2023
Merged by: @AndrewBastin
Base:
release/2023.4.7← Head:fix/hfe-77📝 Commits (3)
ef24178fix: fix issue parsing location with curl80ad513fix: fix reactivity issues with RequestOptions2bfd781refactor: use useVModel for request📊 Changes
3 files changed (+7 additions, -12 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/http/Headers.vue(+1 -1)📝
packages/hoppscotch-common/src/components/http/RequestOptions.vue(+3 -10)📝
packages/hoppscotch-common/src/helpers/curl/sub_helpers/url.ts(+3 -1)📄 Description
Fixes #3109
Url is not properly parsed when importing using curl
Before
We were not respecting the
--locationparameter when parsing the curl request.After
Respect the
--locationparameter when parsing the curl request.Body And Headers are not loaded properly
Before
In component
RequestOptions.vue, we have a refrequestwhich is set toprops.modelValuein the setup function. but when the component updates with new props, this is not updated. this caused child components that uses thisrequestref to not get updated reactively.After
Added a watcher that updates the
requestref, when the props change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.