Skip to content

Commit

Permalink
minor code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 21, 2018
1 parent e107cbb commit 5f3ebaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f3ebaf

Please sign in to comment.