Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilia1243 opened this issue Nov 11, 2024 · 0 comments · May be fixed by #2679
Open

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

ilia1243 opened this issue Nov 11, 2024 · 0 comments · May be fixed by #2679
Assignees
Labels
Milestone

Comments

@ilia1243
Copy link

ilia1243 commented Nov 11, 2024

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())
  1. Check the received headers on the server side.

Actual result:

Test: A

Expected result:

Test: A
Test: B

Extra

@ilia1243 ilia1243 added the bug label Nov 11, 2024
ilia1243 pushed a commit to ilia1243/vertx-web that referenced this issue Nov 11, 2024
ilia1243 pushed a commit to ilia1243/vertx-web that referenced this issue Nov 11, 2024
@tsegismont tsegismont added this to the 4.5.12 milestone Nov 19, 2024
@tsegismont tsegismont self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants