browser(firefox): fulfill intercepted response with empty body (#8152)
This commit is contained in:
parent
1694b3e90c
commit
f434c41523
|
|
@ -1,2 +1,2 @@
|
||||||
1275
|
1276
|
||||||
Changed: yurys@chromium.org Tue 10 Aug 2021 03:19:51 PM PDT
|
Changed: yurys@chromium.org Wed 11 Aug 2021 01:41:01 PM PDT
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,6 @@ class NetworkRequest {
|
||||||
status = status || originalResponse.status;
|
status = status || originalResponse.status;
|
||||||
statusText = statusText || originalResponse.statusText;
|
statusText = statusText || originalResponse.statusText;
|
||||||
headers = headers || originalResponse.headers;
|
headers = headers || originalResponse.headers;
|
||||||
body = body || originalResponse.body;
|
|
||||||
}
|
}
|
||||||
this._interceptedChannel.synthesizeStatus(status, statusText);
|
this._interceptedChannel.synthesizeStatus(status, statusText);
|
||||||
for (const header of headers) {
|
for (const header of headers) {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
1281
|
1282
|
||||||
Changed: lushnikov@chromium.org Tue 10 Aug 2021 05:33:38 PM PDT
|
Changed: yurys@chromium.org Wed 11 Aug 2021 01:40:40 PM PDT
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,6 @@ class NetworkRequest {
|
||||||
status = status || originalResponse.status;
|
status = status || originalResponse.status;
|
||||||
statusText = statusText || originalResponse.statusText;
|
statusText = statusText || originalResponse.statusText;
|
||||||
headers = headers || originalResponse.headers;
|
headers = headers || originalResponse.headers;
|
||||||
body = body || originalResponse.body;
|
|
||||||
}
|
}
|
||||||
this._interceptedChannel.synthesizeStatus(status, statusText);
|
this._interceptedChannel.synthesizeStatus(status, statusText);
|
||||||
for (const header of headers) {
|
for (const header of headers) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue