mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(NetworkManager): Remove header 'cookie' from request hash (#2954)
This fixes an issue in which a response may not be recorded or trigger an event because of differing cookie headers from the request. References #2970
This commit is contained in:
parent
392d3b94bd
commit
0b12119843
@ -675,7 +675,7 @@ function generateRequestHash(request) {
|
||||
for (let header of headers) {
|
||||
const headerValue = request.headers[header];
|
||||
header = header.toLowerCase();
|
||||
if (header === 'accept' || header === 'referer' || header === 'x-devtools-emulate-network-conditions-client-id')
|
||||
if (header === 'accept' || header === 'referer' || header === 'x-devtools-emulate-network-conditions-client-id' || header === 'cookie')
|
||||
continue;
|
||||
hash.headers[header] = headerValue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user