Skip to content

Commit

Permalink
Merge pull request #749 from Klantinteractie-Servicesysteem/bugfix_ch…
Browse files Browse the repository at this point in the history
…unk_encoding

BUGFIX transfer-encoding header causing issues on proxy
  • Loading branch information
felixcicatt authored Feb 26, 2024
2 parents 465cdcc + 732c3b9 commit 038a225
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Kiss.Bff/Config/ProxyConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 038a225

Please sign in to comment.