mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Whitelist GET
This commit is contained in:
parent
1bc6c036cc
commit
6186ab6004
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ PdfStreamConverter.prototype = {
|
||||||
try {
|
try {
|
||||||
var request = aCtxt;
|
var request = aCtxt;
|
||||||
request.QueryInterface(Ci.nsIHttpChannel);
|
request.QueryInterface(Ci.nsIHttpChannel);
|
||||||
skipConversion = (request.requestMethod === 'POST');
|
skipConversion = (request.requestMethod !== 'GET');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Non-HTTP request... continue normally.
|
// Non-HTTP request... continue normally.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue