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:
Donovan Allen 2018-07-30 18:06:53 -06:00 committed by Andrey Lushnikov
parent 392d3b94bd
commit 0b12119843

View File

@ -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;
}