Commit 455f780f authored by Brendan Dahl's avatar Brendan Dahl
Browse files

Bug 1683940 - Don't follow redirects on range requests for PDFs. r=robwu, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D100708
parent c9b2606a
......@@ -94,6 +94,7 @@ var NetworkManager = (function NetworkManagerClosure() {
var rangeStr = args.begin + "-" + (args.end - 1);
xhr.setRequestHeader("Range", "bytes=" + rangeStr);
pendingRequest.expectedStatus = 206;
xhr.channel.QueryInterface(Ci.nsIHttpChannel).redirectionLimit = 0;
} else {
pendingRequest.expectedStatus = 200;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment