mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1459] script the request.isURLEncoding not work #1452
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1452
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 @maotong06 on GitHub (Dec 7, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1459
Description
Steps to Reproduce
1.set isURLEncoding = false
2.proxy a html request ex: i want : http://a.com/abc.html?q=h ---> http://localhost/abc.html?q=h
3. but send request: http://localhost/abc.html%3Fq=h
4.
Current Behavior
isURLEncoding is not work
Expected Behavior
set request http://localhost/abc.html?q=h
Environment
@maotong06 commented on GitHub (Dec 7, 2022):
i set my script is
I don't want to pull out this query and set it myself
@NghiaTranUIT commented on GitHub (Dec 9, 2022):
Hey, if you'd like to change the Host, you don't need to modify the Path.
Just simply use:
=> The path is intact.
@NghiaTranUIT commented on GitHub (Dec 9, 2022):
Regarding your code: I believe that
const urlPath = reg.exec(url)[3],urlPathcontains the Query part too.You can use console.log(urlPath) to see the output.
Thus, assigning it to the
request.path, causes the bug.The
isURLEncodingonly applies to the Query Part, not the URL.