Disable Chrome extension for non-GET requests

This commit is contained in:
Rob Wu 2013-07-27 11:26:55 +02:00
parent c682c25bcf
commit f67a66c108

View File

@ -147,6 +147,10 @@ function getHeadersWithContentDispositionAttachment(details) {
chrome.webRequest.onHeadersReceived.addListener(
function(details) {
if (details.method !== 'GET') {
// Don't intercept POST requests until http://crbug.com/104058 is fixed.
return;
}
if (!isPdfFile(details))
return;