-
-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid extra escape for URLs #1180
Comments
It's a bug in the Node.js implementation. Try using URLSearchParams. The URL is normalized according to the spec. If servers don't follow the spec then it's not our problem. Duplicate of #1113 |
According to https://tools.ietf.org/html/rfc3986#section-2.3 tilde is unreserved and should not encoded by URI producers. querystring.escape() - does not escape tilde got 11 escapes tilde but should not according to RFC |
Got doesn't do this. It's the native |
Describe the bug
Invalid extra escape for urls only in got v11, not in v10
Actual behavior
Got escapes some symbols like
~
in url but should not do this because some servers don't parse such escaped symbolsExpected behavior
Symbols in URLs like
~
must not be escapedCode to reproduce
same result with
new URL(testURL))
in got parametersChecklist
The text was updated successfully, but these errors were encountered: