We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0874d45 commit a8337f0Copy full SHA for a8337f0
lib/node/NodeHttpStack.ts
@@ -88,8 +88,12 @@ class Request implements HttpRequest {
88
}
89
90
return new Promise((resolve, reject) => {
91
+ const parsedUrl = new URL(this._url)
92
const options = {
- ...new URL(this._url),
93
+ protocol: parsedUrl.protocol,
94
+ hostname: parsedUrl.hostname,
95
+ port: parsedUrl.port,
96
+ path: parsedUrl.pathname + parsedUrl.search,
97
...this._requestOptions,
98
99
method: this._method,
0 commit comments