servo/tests/wpt/meta/fetch/content-length/api-and-duplicate-headers.any.js.ini
Andreu Botella 482d28e4ff
Fix content-type when creating a Request with FormData body (#36194)
When you create a `Request` object with a `FormData` body, the spec
says that the `Content-Type` header should start with
`multipart/form-data; boundary=`. However, in Servo's implementation
it started with `multipart/form-data;boundary=`, without the space.

While all reasonable servers should be able to that headers whether
the space is present or not, this brings Servo closer to the spec, and
also makes some WPT tests pass.

Note that submitting a form with `enctype="multipart/form-data"` does
produce a `Content-Type` header with the space (see
`HTMLFormElement::submit_entity_body`).

Signed-off-by: Andreu Botella <abotella@igalia.com>
2025-03-28 13:33:07 +00:00

11 lines
341 B
INI
Vendored

[api-and-duplicate-headers.any.html]
[XMLHttpRequest and duplicate Content-Length/Content-Type headers]
expected: FAIL
[api-and-duplicate-headers.any.worker.html]
[XMLHttpRequest and duplicate Content-Length/Content-Type headers]
expected: FAIL
[fetch() and duplicate Content-Length/Content-Type headers]
expected: FAIL