mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-02 02:49:48 +01:00
fix(#1042): fixed setCookie issue when cookie is not a string
This commit is contained in:
parent
752d4ae79e
commit
2240acb272
@ -468,10 +468,12 @@ const registerNetworkIpc = (mainWindow) => {
|
||||
: [response.headers['set-cookie']];
|
||||
|
||||
for (let setCookieHeader of setCookieHeaders) {
|
||||
if (typeof setCookieHeader === 'string' && setCookieHeader.length) {
|
||||
addCookieToJar(setCookieHeader, request.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// send domain cookies to renderer
|
||||
const domainsWithCookies = await getDomainsWithCookies();
|
||||
|
Loading…
Reference in New Issue
Block a user