mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 04:52:03 -08:00
Fix expect_response failing when decoding compressed resps #186 beta.22
Fix for a regression caused by this change in FF135: https://hg.mozilla.org/mozilla-central/rev/adc7412eeab1a4fcb8f10211a268b799c22350a3
This commit is contained in:
parent
2a250720a6
commit
5938f6e027
2 changed files with 3 additions and 3 deletions
|
|
@ -870,7 +870,7 @@ function setPostData(httpChannel, postData, headers) {
|
|||
return;
|
||||
const synthesized = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.nsIStringInputStream);
|
||||
const body = atob(postData);
|
||||
synthesized.setData(body, body.length);
|
||||
synthesized.setByteStringData(body, body.length);
|
||||
|
||||
const overriddenHeader = (lowerCaseName) => {
|
||||
if (headers) {
|
||||
|
|
@ -902,7 +902,7 @@ function convertString(s, source, dest) {
|
|||
const is = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(
|
||||
Ci.nsIStringInputStream
|
||||
);
|
||||
is.setData(s, s.length);
|
||||
is.setByteStringData(s, s.length);
|
||||
const listener = Cc["@mozilla.org/network/stream-loader;1"].createInstance(
|
||||
Ci.nsIStreamLoader
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
version=135.0
|
||||
release=beta.21
|
||||
release=beta.22
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue