mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4769] [bug]: unable to send a request containing slashes #1787
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#1787
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?
Originally created by @keliansb on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4769
Originally assigned to: @xTudoS on GitHub.
Is there an existing issue for this?
Current behavior
I'm trying to get a file from a GitLab repository using the REST API, here is the documentation of the endpoint.
We can see that the
file_pathin the URL needs to be URL encoded.Here is a request to get the file
README.mdat the root of this repository (sofile_pathis justREADME.md):And here is another request to get the file
README.mdin the folderchangelogs(nowfile_pathischangelogs%2FREADME.md):A 404 Not Found is returned because
%2Fhas been replaced by a slash in the URL.I tried on Hoppscotch cloud and self-hosted, both returned the same behavior.
Steps to reproduce
Import the following
curlrequest into Hoppscotch:%2Fis replaced by/in the URL when importing, so change the URL fromchangelogs/README.mdtochangelogs%2FREADME.mdand then send the requestEnvironment
Production
Version
Cloud
@xTudoS commented on GitHub (Feb 27, 2025):
I did some tests and find out where is the problem. Is in the function that imports curl command, more specific in this line:
const urlString = decodeURIComponent(concatParams(urlObject, danglingParams))I removed the decodeURIComponent and it worked!
I will open a PR to request this change
@xTudoS commented on GitHub (Feb 27, 2025):
about the code generation, is a issue in https://github.com/hoppscotch/httpsnippet/
@liyasthomas commented on GitHub (Jul 30, 2025):
This issue has been resolved in the latest version.