Closed stevenvachon closed 4 years ago
11.1.3
12.16.3
14.2.0
macOS 10.15.4
Similar to #1234, basic auth values are not decoded before sending to http.request, resulting in authentication failure.
http.request
These send "%3Duser" and "%3Dpass" to http.request:
const url = new URL('http://host'); url.username = '=user'; url.password = '=pass'; got(new URL(url));
got({ password: '=user', url: 'http://host', username: '=user' });
const url = new URL('http://host'); got(`${url.protocol}//=user:=pass@${url.host}`);
Duplicate of #1169
Describe the bug
11.1.3
12.16.3
and14.2.0
macOS 10.15.4
Similar to #1234, basic auth values are not decoded before sending to
http.request
, resulting in authentication failure.Code to reproduce
These send "%3Duser" and "%3Dpass" to
http.request
:Checklist