Merge pull request #3514 from Rob--W/crx-viewer-GET-only
Disable Chrome extension for non-GET requests
This commit is contained in:
commit
a6daed5ded
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user