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