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()); });