Skip to content

Commit

Permalink
code review: also take into account modifications to http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 2, 2018
1 parent 82ed807 commit 01216b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 01216b9

Please sign in to comment.