Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ function urlToHttpOptions(url) {
validateObject(url, 'url', kValidateObjectAllowObjects);
const { hostname, pathname, port, username, password, search } = url;
const options = {
__proto__: null,
__proto__: kEmptyObject,
// Only spread own enumerable properties for genuine WHATWG URL instances so
// that a URL object can still be extended with additional request options
// (e.g. `url.headers = ...`). Arbitrary duck-typed objects accepted by
Expand Down
Loading