Issue #1442 - Part 10c - Use application/octet-stream for arrayBuffer in sendBeacon. https://bugzilla.mozilla.org/show_bug.cgi?id=1329298 Pre-requisite for Part 11.

This commit is contained in:
Brian Smith 2023-09-27 23:40:02 -05:00 committed by roytam1
commit 772ab8ac41
3 changed files with 25 additions and 12 deletions

View file

@ -88,8 +88,7 @@ function handleRequest(request, response) {
data += charcode;
}
var mimetype = request.hasHeader("Content-Type")
? request.getHeader("Content-Type") : "application/octet-stream";
var mimetype = request.getHeader("Content-Type");
// check to see if this is form data.
if (mimetype.indexOf("multipart/form-data") != -1) {