diff --git a/Dockerfile-builder-linux b/Dockerfile-builder-linux
index dd259af4..a004156b 100644
--- a/Dockerfile-builder-linux
+++ b/Dockerfile-builder-linux
@@ -1,5 +1,5 @@
ARG GOLANG_VERSION
-FROM golang:${GOLANG_VERSION}
+FROM golang:${GOLANG_VERSION}-bullseye
RUN apt-get update && \
apt-get install -y gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu \
diff --git a/Makefile b/Makefile
index d3659ac6..79ca9b80 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
BIN_NAME :=krakend
OS := $(shell uname | tr '[:upper:]' '[:lower:]')
-VERSION := 2.4.2
+VERSION := 2.4.3
SCHEMA_VERSION := $(shell echo "${VERSION}" | cut -d '.' -f 1,2)
GIT_COMMIT := $(shell git rev-parse --short=7 HEAD)
PKGNAME := krakend
diff --git a/tests/fixtures/specs/backend_301.json b/tests/fixtures/specs/backend_301.json
index d0a732fd..89d87b04 100644
--- a/tests/fixtures/specs/backend_301.json
+++ b/tests/fixtures/specs/backend_301.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=301\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"301\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=301\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"301\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/backend_302.json b/tests/fixtures/specs/backend_302.json
index b8208e7e..34b993c6 100644
--- a/tests/fixtures/specs/backend_302.json
+++ b/tests/fixtures/specs/backend_302.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=302\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"302\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=302\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"302\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/backend_303.json b/tests/fixtures/specs/backend_303.json
index 37f10875..8ced19c7 100644
--- a/tests/fixtures/specs/backend_303.json
+++ b/tests/fixtures/specs/backend_303.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=303\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"303\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=303\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"303\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/backend_307.json b/tests/fixtures/specs/backend_307.json
index 8b1c453f..bc67e511 100644
--- a/tests/fixtures/specs/backend_307.json
+++ b/tests/fixtures/specs/backend_307.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=307\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"307\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Referer\":[\"http://127.0.0.1:8081/redirect/?status=307\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{\"status\":[\"307\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/cel-7.json b/tests/fixtures/specs/cel-7.json
index e637627f..6ef9b4df 100644
--- a/tests/fixtures/specs/cel-7.json
+++ b/tests/fixtures/specs/cel-7.json
@@ -12,7 +12,7 @@
"foo":42,
"headers":{
"Accept-Encoding":["gzip"],
- "User-Agent":["KrakenD Version 2.4.2"],
+ "User-Agent":["KrakenD Version 2.4.3"],
"X-Forwarded-Host":["localhost:8080"]
},
"path":"/param_forwarding/ok/1234567890qwertyuio/foobar",
diff --git a/tests/fixtures/specs/cors_5.json b/tests/fixtures/specs/cors_5.json
index 218d8f1b..978d2384 100644
--- a/tests/fixtures/specs/cors_5.json
+++ b/tests/fixtures/specs/cors_5.json
@@ -9,12 +9,12 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
"X-Krakend-Completed": ["true"],
- "X-Krakend": ["Version 2.4.2"],
+ "X-Krakend": ["Version 2.4.3"],
"Vary": ["Origin"],
"Access-Control-Allow-Origin": ["*"],
"Access-Control-Expose-Headers": ["Content-Length"]
diff --git a/tests/fixtures/specs/detail_error.json b/tests/fixtures/specs/detail_error.json
index 2128c941..217365dc 100644
--- a/tests/fixtures/specs/detail_error.json
+++ b/tests/fixtures/specs/detail_error.json
@@ -13,7 +13,7 @@
"foo": 42,
"headers": {
"Accept-Encoding": ["gzip"],
- "User-Agent": ["KrakenD Version 2.4.2"],
+ "User-Agent": ["KrakenD Version 2.4.3"],
"X-Forwarded-Host": ["localhost:8080"]
},
"path": "/param_forwarding/",
diff --git a/tests/fixtures/specs/no-op_1.json b/tests/fixtures/specs/no-op_1.json
index 9dfe512f..b46794df 100644
--- a/tests/fixtures/specs/no-op_1.json
+++ b/tests/fixtures/specs/no-op_1.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Content-Length\":[\"0\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{}}\n",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Content-Length\":[\"0\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/\",\"query\":{}}\n",
"header": {
"content-type": ["application/json"],
"Cache-Control": [""],
diff --git a/tests/fixtures/specs/param_forwarding_1.json b/tests/fixtures/specs/param_forwarding_1.json
index 1a9fd5f2..a03c9b1e 100644
--- a/tests/fixtures/specs/param_forwarding_1.json
+++ b/tests/fixtures/specs/param_forwarding_1.json
@@ -10,7 +10,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/param_forwarding_2.json b/tests/fixtures/specs/param_forwarding_2.json
index ca547b5f..34910bc2 100644
--- a/tests/fixtures/specs/param_forwarding_2.json
+++ b/tests/fixtures/specs/param_forwarding_2.json
@@ -10,7 +10,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"A-B-C\":[\"ignore\"],\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"Go-http-client/1.1\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Forwarded-Via\":[\"KrakenD Version 2.4.2\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"A-B-C\":[\"ignore\"],\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"Go-http-client/1.1\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Forwarded-Via\":[\"KrakenD Version 2.4.3\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/param_forwarding_3.json b/tests/fixtures/specs/param_forwarding_3.json
index ab708440..3dd72739 100644
--- a/tests/fixtures/specs/param_forwarding_3.json
+++ b/tests/fixtures/specs/param_forwarding_3.json
@@ -10,7 +10,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"Authorization\":[\"bearer 123456\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"],\"X-Y-Z\":[\"true\"]},\"path\":\"/param_forwarding/bar\",\"query\":{\"foo\":[\"foo\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/param_forwarding_4.json b/tests/fixtures/specs/param_forwarding_4.json
index 0d561f20..1106e233 100644
--- a/tests/fixtures/specs/param_forwarding_4.json
+++ b/tests/fixtures/specs/param_forwarding_4.json
@@ -17,7 +17,7 @@
"headers":{
"Accept-Encoding":["gzip"],
"Authorization":["bearer 123456"],
- "User-Agent":["KrakenD Version 2.4.2"],
+ "User-Agent":["KrakenD Version 2.4.3"],
"X-Forwarded-Host":["localhost:8080"],
"X-Y-Z":["true"]
},
diff --git a/tests/fixtures/specs/query_forwarding_1.json b/tests/fixtures/specs/query_forwarding_1.json
index 34e17d56..faa0f508 100644
--- a/tests/fixtures/specs/query_forwarding_1.json
+++ b/tests/fixtures/specs/query_forwarding_1.json
@@ -8,7 +8,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"],\"b\":[\"2\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"],\"b\":[\"2\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/query_forwarding_2.json b/tests/fixtures/specs/query_forwarding_2.json
index aa48a841..90e75854 100644
--- a/tests/fixtures/specs/query_forwarding_2.json
+++ b/tests/fixtures/specs/query_forwarding_2.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"],\"b\":[\"2\",\"3\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"],\"b\":[\"2\",\"3\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/query_forwarding_3.json b/tests/fixtures/specs/query_forwarding_3.json
index 7ebc8ff4..e96bb0f5 100644
--- a/tests/fixtures/specs/query_forwarding_3.json
+++ b/tests/fixtures/specs/query_forwarding_3.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"]}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/foo\",\"query\":{\"a\":[\"1\"]}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/sequential_1.json b/tests/fixtures/specs/sequential_1.json
index b3398acf..a8c050b5 100644
--- a/tests/fixtures/specs/sequential_1.json
+++ b/tests/fixtures/specs/sequential_1.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/42\",\"query\":{}}",
+ "body": "{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/42\",\"query\":{}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": ["public, max-age=3600"],
diff --git a/tests/fixtures/specs/timeout.json b/tests/fixtures/specs/timeout.json
index e1cbbd9f..f3bbe91a 100644
--- a/tests/fixtures/specs/timeout.json
+++ b/tests/fixtures/specs/timeout.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "{\"first\":{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.2\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/123\",\"query\":{}}}",
+ "body": "{\"first\":{\"foo\":42,\"headers\":{\"Accept-Encoding\":[\"gzip\"],\"User-Agent\":[\"KrakenD Version 2.4.3\"],\"X-Forwarded-Host\":[\"localhost:8080\"]},\"path\":\"/param_forwarding/123\",\"query\":{}}}",
"header": {
"content-type": ["application/json; charset=utf-8"],
"Cache-Control": [""],
diff --git a/tests/fixtures/specs/xml_2.json b/tests/fixtures/specs/xml_2.json
index c421591e..05aa904c 100644
--- a/tests/fixtures/specs/xml_2.json
+++ b/tests/fixtures/specs/xml_2.json
@@ -5,7 +5,7 @@
},
"out": {
"status_code": 200,
- "body": "42gziphttp://127.0.0.1:8081/param_forwardingKrakenD Version 2.4.2localhost:8080/param_forwarding/",
+ "body": "42gziphttp://127.0.0.1:8081/param_forwardingKrakenD Version 2.4.3localhost:8080/param_forwarding/",
"header": {
"content-type": ["application/xml"],
"Cache-Control": ["public, max-age=3600"],