net: Don't ignore the referer header in net.request (#23386)
This commit is contained in:
parent
0a481242f0
commit
9d851b8791
4 changed files with 35 additions and 0 deletions
|
@ -386,6 +386,7 @@ class ClientRequest extends Writable implements Electron.ClientRequest {
|
|||
}
|
||||
return ret;
|
||||
};
|
||||
this._urlLoaderOptions.referrer = this._urlLoaderOptions.extraHeaders.referer || '';
|
||||
const opts = { ...this._urlLoaderOptions, extraHeaders: stringifyValues(this._urlLoaderOptions.extraHeaders) };
|
||||
this._urlLoader = createURLLoader(opts);
|
||||
this._urlLoader.on('response-started', (event, finalUrl, responseHead) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue