From f470308fc5ed5598d15f96ef8c4cfcb270f1f0de Mon Sep 17 00:00:00 2001 From: ilia1243 <8808144+ilia1243@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:46:07 +0300 Subject: [PATCH] test --- .github/workflows/ci.yml | 20 ++++++------------- .../ext/web/client/impl/HttpContext.java | 5 ----- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 765be54592..6dbc6dbc29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,29 +1,21 @@ name: CI on: - workflow_call: - inputs: - branch: - required: true - type: string - jdk: - default: 8 - type: string - os: - default: ubuntu-latest - type: string + push: + branches: + - test jobs: Test: name: Run tests - runs-on: ${{ inputs.os }} + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: - ref: ${{ inputs.branch }} + ref: test - name: Install JDK uses: actions/setup-java@v2 with: - java-version: ${{ inputs.jdk }} + java-version: 11 distribution: temurin - name: Run tests run: mvn -s .github/maven-ci-settings.xml clean verify -B 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 becfd3a3f5..5103408fb8 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 @@ -444,11 +444,6 @@ private void handleCreateRequest() { return; } MultiMap headers = this.request.checkHeaders(requestOptions); - MultiMap requestHeaders = this.request.headers(); - for (String headerName : requestHeaders.names()) { - headers.remove(headerName); - } - headers.addAll(requestHeaders); multipartForm.headers().forEach(header -> { headers.set(header.getKey(), header.getValue()); });