mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2088] [MERGED] fix: parsing of protocol correctly #3621
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#3621
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/2088
Author: @kyteinsky
Created: 1/25/2022
Status: ✅ Merged
Merged: 2/22/2022
Merged by: @AndrewBastin
Base:
main← Head:fix/parse-curl-protocol📝 Commits (10+)
edbe8b3fix: parsing of protocol correctly5b3a429Merge branch 'main' into fix/parse-curl-protocol5a82fd1fix: leave params with no value in the url647e03dfix: accept basic auth creds with --user arg637c23cfix: settle type issue2f5311afix: various bug fixes and content type detectionfac1e24fix: code style changes and fp-ts methods used0f23e1bfix: curl parser code cleaning49c01f2feat: add named tracing to functional methods9d9a0a5refactor: convert code to functional nature and bug fixes📊 Changes
7 files changed (+994 additions, -329 deletions)
View changed files
📝
packages/hoppscotch-app/components/http/ImportCurl.vue(+3 -65)➕
packages/hoppscotch-app/helpers/curl/contentParser.ts(+274 -0)➕
packages/hoppscotch-app/helpers/curl/curlparser.ts(+666 -0)➕
packages/hoppscotch-app/helpers/curl/index.ts(+29 -0)➖
packages/hoppscotch-app/helpers/curlparser.ts(+0 -264)📝
packages/hoppscotch-app/helpers/functional/debug.ts(+13 -0)➕
packages/hoppscotch-app/helpers/functional/json.ts(+9 -0)📄 Description
Closes #2066
Description
Domain with no protocol supplied was not parsed correctly and resulted in null. This issue has been fixed in this commit. Moreover, params with no values now do not carry double quotes in the key section and are placed at the end of the URL itself instead of the parameters section. Basic auth (username and password) has been added.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.