1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-05-20 20:23:37 +12:00

code review: also take into account modifications to http headers

This commit is contained in:
Raymond Hill 2018-02-02 07:51:11 -05:00
parent 82ed807bd2
commit 01216b9520
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

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