vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 535 forks source link

Only one header value of several is sent with MultipartForm body #2678

Open ilia1243 opened 1 week ago

ilia1243 commented 1 week ago

Version

4.5.3

Context

The task is to send few values for the same header, e. g. using HttpRequest#putHeader(String, Iterable).

If using HttpRequest#sendForm() or HttpRequest#sendMultipartForm(), only the first value is sent.

If using just HttpRequest#send(), all values are sent.

Steps to reproduce

  1. Execute on client side:
    WebClient.getAbs("<URI>")
        .putHeader("Test", List.of("A", "B"))
        .sendForm(MultiMap.caseInsensitiveMultiMap())
  2. Check the received headers on the server side.

Actual result:

Test: A

Expected result:

Test: A
Test: B

Extra