mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
minor code review
This commit is contained in:
parent
e107cbb370
commit
5f3ebafbf2
1 changed files with 1 additions and 4 deletions
|
|
@ -609,10 +609,7 @@ var onHeadersReceived = function(details) {
|
|||
if ( i !== -1 ) {
|
||||
responseHeaders[i].value = cacheControl;
|
||||
} else {
|
||||
responseHeaders[responseHeaders.length] = {
|
||||
name: 'Cache-Control',
|
||||
value: cacheControl
|
||||
};
|
||||
responseHeaders.push({ name: 'Cache-Control', value: cacheControl });
|
||||
}
|
||||
modifiedHeaders = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue