From 732c3b93b14f77d0e3de2643b6d23be9597a2099 Mon Sep 17 00:00:00 2001 From: Felix Cornelissen Date: Mon, 29 Jan 2024 17:13:49 +0100 Subject: [PATCH] BUGFIX transfer-encoding header causing issues on proxy --- Kiss.Bff/Config/ProxyConfig.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kiss.Bff/Config/ProxyConfig.cs b/Kiss.Bff/Config/ProxyConfig.cs index a30fd9ae5..52a460317 100644 --- a/Kiss.Bff/Config/ProxyConfig.cs +++ b/Kiss.Bff/Config/ProxyConfig.cs @@ -51,6 +51,9 @@ public async Task ExecuteResultAsync(ActionContext context) foreach (var item in responseMessage.Headers) { + // deze header geeft aan of de content 'chunked' is. maar die waarde kunnen we niet overnemen, + // die is namelijk afhankelijk van hoe we zelf hieronder de eigen response opbouwen. + if (item.Key.Equals("transfer-encoding", StringComparison.OrdinalIgnoreCase)) continue; proxiedResponse.Headers[item.Key] = new(item.Value.ToArray()); }