Drops unneeded HTTP refresh header for the extension.

Some sites doing that by mistake. Aligning the extension functionality with behavior of other browsers/plugins..
This commit is contained in:
Yury Delendik 2016-09-15 09:12:16 -05:00
parent 3b94ecf563
commit 503bf45eca

View File

@ -970,6 +970,8 @@ PdfStreamConverter.prototype = {
aRequest.setResponseHeader('Content-Security-Policy', '', false);
aRequest.setResponseHeader('Content-Security-Policy-Report-Only', '',
false);
// The viewer does not need to handle HTTP Refresh header.
aRequest.setResponseHeader('Refresh', '', false);
}
PdfJsTelemetry.onViewerIsUsed();