Skip to content

Commit 5938f6e

Browse files
committed
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
1 parent 2a25072 commit 5938f6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

additions/juggler/NetworkObserver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ function setPostData(httpChannel, postData, headers) {
870870
return;
871871
const synthesized = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.nsIStringInputStream);
872872
const body = atob(postData);
873-
synthesized.setData(body, body.length);
873+
synthesized.setByteStringData(body, body.length);
874874

875875
const overriddenHeader = (lowerCaseName) => {
876876
if (headers) {
@@ -902,7 +902,7 @@ function convertString(s, source, dest) {
902902
const is = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(
903903
Ci.nsIStringInputStream
904904
);
905-
is.setData(s, s.length);
905+
is.setByteStringData(s, s.length);
906906
const listener = Cc["@mozilla.org/network/stream-loader;1"].createInstance(
907907
Ci.nsIStreamLoader
908908
);

upstream.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version=135.0
2-
release=beta.21
2+
release=beta.22

0 commit comments

Comments
 (0)