browser(firefox): fixes empty string postData override (#11529)

Relates #11470
Blocks #11421
This commit is contained in:
Ross Wollman 2022-01-20 16:19:29 -08:00 committed by GitHub
parent fb139cefac
commit 8f0a5019c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -1,2 +1,2 @@
1314
Changed: lushnikov@chromium.org Sat Jan 8 18:49:01 MSK 2022
1315
Changed: ross.wollman@gmail.com Wed Jan 19 09:15:42 PST 2022

View File

@ -250,7 +250,7 @@ class NetworkRequest {
}
if (method)
this.httpChannel.requestMethod = method;
if (postData)
if (postData !== undefined)
setPostData(this.httpChannel, postData, headers);
}

View File

@ -1,2 +1,2 @@
1314
Changed: lushnikov@chromium.org Tue 18 Jan 2022 02:42:08 AM PST
1315
Changed: ross.wollman@gmail.com Tue Jan 18 21:20:13 PST 2022

View File

@ -250,7 +250,7 @@ class NetworkRequest {
}
if (method)
this.httpChannel.requestMethod = method;
if (postData)
if (postData !== undefined)
setPostData(this.httpChannel, postData, headers);
}