mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
Issue #1442 - Part 10a - Unify body extraction in Fetch/Beacon/XHR. https://bugzilla.mozilla.org/show_bug.cgi?id=1329298 Pre-requisite for Part 11.
This commit is contained in:
parent
3979e4847c
commit
a4146b60a4
15 changed files with 439 additions and 447 deletions
|
|
@ -88,7 +88,8 @@ function handleRequest(request, response) {
|
|||
data += charcode;
|
||||
}
|
||||
|
||||
var mimetype = request.getHeader("Content-Type");
|
||||
var mimetype = request.hasHeader("Content-Type")
|
||||
? request.getHeader("Content-Type") : "application/octet-stream";
|
||||
|
||||
// check to see if this is form data.
|
||||
if (mimetype.indexOf("multipart/form-data") != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue