mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
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>
21 lines
667 B
INI
Vendored
21 lines
667 B
INI
Vendored
[response-consume.html]
|
|
[Consume response's body: from text with correct multipart type to formData]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from text with correct multipart type to formData with BOM]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from blob with correct multipart type to formData]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from FormData to formData]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from stream with correct multipart type to formData]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from multipart form data blob to formData]
|
|
expected: FAIL
|
|
|
|
[Consume response's body: from FormData to blob]
|
|
expected: FAIL
|