From 1939e53297610fc595434d29c21bb0c378b24df7 Mon Sep 17 00:00:00 2001 From: Antoine CORDIER Date: Thu, 7 Sep 2023 14:01:15 +0200 Subject: [PATCH] fix: revert "reapply ByteBuf optimization" This reverts commit 44f1a3d1ae9213c6f3745b7174c695cc24e36999. --- .circleci/config.yml | 6 +++--- .../java/io/gravitee/connector/http/HttpConnection.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cf810187..7f4a8353 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ version: 2.1 setup: true orbs: - gravitee: gravitee-io/gravitee@2.1 + gravitee: gravitee-io/gravitee@4.1.0 # our single workflow, that triggers the setup job defined above, filters on tag and branches are needed otherwise # some workflow and job will not be triggered for tags (default CircleCI behavior) @@ -22,7 +22,7 @@ workflows: setup_release: when: matches: - pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$" + pattern: "/^[0-9]+\\.[0-9]+\\.[0-9]+(-(alpha|beta|rc)\\.[0-9]+)?$/" value: << pipeline.git.tag >> jobs: - gravitee/setup_plugin-release-config: @@ -32,4 +32,4 @@ workflows: - /.*/ tags: only: - - /^[0-9]+\.[0-9]+\.[0-9]+$/ \ No newline at end of file + - /^[0-9]+\.[0-9]+\.[0-9]+(-(alpha|beta|rc)\.[0-9]+)?$/ \ No newline at end of file diff --git a/src/main/java/io/gravitee/connector/http/HttpConnection.java b/src/main/java/io/gravitee/connector/http/HttpConnection.java index f12be968..f317a176 100644 --- a/src/main/java/io/gravitee/connector/http/HttpConnection.java +++ b/src/main/java/io/gravitee/connector/http/HttpConnection.java @@ -198,7 +198,7 @@ protected T handleUpstreamResponse(final AsyncResult clientR response.cancelHandler(tracker); // Copy body content - clientResponse.handler(event -> response.bodyHandler().handle(Buffer.buffer(event))); + clientResponse.handler(event -> response.bodyHandler().handle(Buffer.buffer(event.getBytes()))); // Signal end of the response clientResponse.endHandler(event -> {