1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #1339 from notmasteryet/whitelist-get

Whitelist GET
This commit is contained in:
Brendan Dahl 2012-03-15 16:18:56 -07:00
commit f63db6de79

View file

@ -133,7 +133,7 @@ PdfStreamConverter.prototype = {
try {
var request = aCtxt;
request.QueryInterface(Ci.nsIHttpChannel);
skipConversion = (request.requestMethod === 'POST');
skipConversion = (request.requestMethod !== 'GET');
} catch (e) {
// Non-HTTP request... continue normally.
}