Browse Source
code review: also take into account modifications to http headers
pull/2/head
Raymond Hill
7 years ago
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with
2 additions and
0 deletions
-
src/js/traffic.js
|
|
@ -218,6 +218,7 @@ var onBeforeSendHeadersHandler = function(details) { |
|
|
|
requestHeaders.splice(headerIndex, 1); |
|
|
|
µm.cookieHeaderFoiledCounter++; |
|
|
|
if ( requestType === 'doc' ) { |
|
|
|
pageStore.perLoadBlockedRequestCount++; |
|
|
|
µm.logger.writeOne(tabId, 'net', '', headerValue, 'COOKIE', true); |
|
|
|
} |
|
|
|
} |
|
|
@ -260,6 +261,7 @@ var onBeforeSendHeadersHandler = function(details) { |
|
|
|
} |
|
|
|
µm.refererHeaderFoiledCounter++; |
|
|
|
if ( requestType === 'doc' ) { |
|
|
|
pageStore.perLoadBlockedRequestCount++; |
|
|
|
µm.logger.writeOne(tabId, 'net', '', headerValue, 'REFERER', true); |
|
|
|
if ( newValue !== undefined ) { |
|
|
|
µm.logger.writeOne(tabId, 'net', '', newValue, 'REFERER', false); |
|
|
|