From 4ea2fb35516bf2e0cb1f8c2dfdfac85839d27253 Mon Sep 17 00:00:00 2001 From: Paulo Lopes Date: Mon, 12 Oct 2020 15:45:16 +0200 Subject: [PATCH] Revert remove header Signed-off-by: Paulo Lopes --- .../main/java/io/vertx/ext/web/client/impl/HttpContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/HttpContext.java b/vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/HttpContext.java index 7da6feae67..4b8acf81be 100644 --- a/vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/HttpContext.java +++ b/vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/HttpContext.java @@ -495,6 +495,9 @@ private void handleSendRequest() { fail(e); return; } + for (String headerName : this.request.headers().names()) { + requestOptions.putHeader(headerName, this.request.headers().get(headerName)); + } multipartForm.headers().forEach(header -> { requestOptions.putHeader(header.getKey(), header.getValue()); });