browser(firefox): fulfill intercepted response with empty body (#8152)

This commit is contained in:
Yury Semikhatsky 2021-08-11 14:39:49 -07:00 committed by GitHub
parent 1694b3e90c
commit f434c41523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 6 deletions

View file

@ -1,2 +1,2 @@
1275
Changed: yurys@chromium.org Tue 10 Aug 2021 03:19:51 PM PDT
1276
Changed: yurys@chromium.org Wed 11 Aug 2021 01:41:01 PM PDT

View file

@ -344,7 +344,6 @@ class NetworkRequest {
status = status || originalResponse.status;
statusText = statusText || originalResponse.statusText;
headers = headers || originalResponse.headers;
body = body || originalResponse.body;
}
this._interceptedChannel.synthesizeStatus(status, statusText);
for (const header of headers) {

View file

@ -1,2 +1,2 @@
1281
Changed: lushnikov@chromium.org Tue 10 Aug 2021 05:33:38 PM PDT
1282
Changed: yurys@chromium.org Wed 11 Aug 2021 01:40:40 PM PDT

View file

@ -344,7 +344,6 @@ class NetworkRequest {
status = status || originalResponse.status;
statusText = statusText || originalResponse.statusText;
headers = headers || originalResponse.headers;
body = body || originalResponse.body;
}
this._interceptedChannel.synthesizeStatus(status, statusText);
for (const header of headers) {