Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
code review for #404
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 15, 2014
1 parent ca7ea18 commit 8f51ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ var onMainDocHeadersReceived = function(details) {
// inject CSP for XML documents, rather then not inject CSP if not a
// HTML document in order to limit to a minimum the change in behavior.
i = headerIndexFromName('content-type', headers);
if ( i === -1 || headers[i].value.search('text/xml') !== -1 ) {
if ( i !== -1 && headers[i].value.indexOf('text/xml') !== -1 ) {
return;
}

Expand Down

0 comments on commit 8f51ee2

Please sign in to comment.