feat: add support for net requests to use the session cookie store (#22704)

This commit is contained in:
Samuel Attard 2020-03-20 15:56:02 -07:00 committed by GitHub
parent 07a049ef1b
commit 60bd52880f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 137 additions and 1 deletions

View file

@ -236,7 +236,8 @@ function parseOptions (options) {
method: method,
url: urlStr,
redirectPolicy,
extraHeaders: options.headers || {}
extraHeaders: options.headers || {},
useSessionCookies: options.useSessionCookies || false
};
for (const [name, value] of Object.entries(urlLoaderOptions.extraHeaders)) {
if (!_isValidHeaderName(name)) {