Commit a390f946 authored by Brendan Dahl's avatar Brendan Dahl
Browse files

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

Differential Revision: https://phabricator.services.mozilla.com/D100708
parent ad6fdeea
......@@ -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;
}
......
Supports Markdown
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