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

Commit 8f51ee2

Browse files
committed
code review for #404
1 parent ca7ea18 commit 8f51ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/traffic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ var onMainDocHeadersReceived = function(details) {
756756
// inject CSP for XML documents, rather then not inject CSP if not a
757757
// HTML document in order to limit to a minimum the change in behavior.
758758
i = headerIndexFromName('content-type', headers);
759-
if ( i === -1 || headers[i].value.search('text/xml') !== -1 ) {
759+
if ( i !== -1 && headers[i].value.indexOf('text/xml') !== -1 ) {
760760
return;
761761
}
762762

0 commit comments

Comments
 (0)