minor code review

This commit is contained in:
Raymond Hill 2018-09-21 09:27:41 -04:00
parent e107cbb370
commit 5f3ebafbf2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 4 deletions

View File

@ -609,10 +609,7 @@ var onHeadersReceived = function(details) {
if ( i !== -1 ) { if ( i !== -1 ) {
responseHeaders[i].value = cacheControl; responseHeaders[i].value = cacheControl;
} else { } else {
responseHeaders[responseHeaders.length] = { responseHeaders.push({ name: 'Cache-Control', value: cacheControl });
name: 'Cache-Control',
value: cacheControl
};
} }
modifiedHeaders = true; modifiedHeaders = true;
} }