Browse Source

code review: also take into account modifications to http headers

pull/2/head
Raymond Hill 7 years ago
parent
commit
01216b9520
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 2
      src/js/traffic.js

2
src/js/traffic.js

@ -218,6 +218,7 @@ var onBeforeSendHeadersHandler = function(details) {
requestHeaders.splice(headerIndex, 1); requestHeaders.splice(headerIndex, 1);
µm.cookieHeaderFoiledCounter++; µm.cookieHeaderFoiledCounter++;
if ( requestType === 'doc' ) { if ( requestType === 'doc' ) {
pageStore.perLoadBlockedRequestCount++;
µm.logger.writeOne(tabId, 'net', '', headerValue, 'COOKIE', true); µm.logger.writeOne(tabId, 'net', '', headerValue, 'COOKIE', true);
} }
} }
@ -260,6 +261,7 @@ var onBeforeSendHeadersHandler = function(details) {
} }
µm.refererHeaderFoiledCounter++; µm.refererHeaderFoiledCounter++;
if ( requestType === 'doc' ) { if ( requestType === 'doc' ) {
pageStore.perLoadBlockedRequestCount++;
µm.logger.writeOne(tabId, 'net', '', headerValue, 'REFERER', true); µm.logger.writeOne(tabId, 'net', '', headerValue, 'REFERER', true);
if ( newValue !== undefined ) { if ( newValue !== undefined ) {
µm.logger.writeOne(tabId, 'net', '', newValue, 'REFERER', false); µm.logger.writeOne(tabId, 'net', '', newValue, 'REFERER', false);

Loading…
Cancel
Save