From ec27fe7ad454f75d087fedaf1c965c15f9249073 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Sat, 17 Aug 2024 21:09:28 -0400 Subject: [PATCH] . --- OpenAI-DotNet-Proxy/Proxy/EndpointRouteBuilder.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/OpenAI-DotNet-Proxy/Proxy/EndpointRouteBuilder.cs b/OpenAI-DotNet-Proxy/Proxy/EndpointRouteBuilder.cs index 9a4a0309..1f44a7b5 100644 --- a/OpenAI-DotNet-Proxy/Proxy/EndpointRouteBuilder.cs +++ b/OpenAI-DotNet-Proxy/Proxy/EndpointRouteBuilder.cs @@ -81,21 +81,13 @@ async Task HandleRequest(HttpContext httpContext, string endpoint) foreach (var (key, value) in proxyResponse.Headers) { - if (excludedHeaders.Contains(key)) - { - continue; - } - + if (excludedHeaders.Contains(key)) { continue; } httpContext.Response.Headers[key] = value.ToArray(); } foreach (var (key, value) in proxyResponse.Content.Headers) { - if (excludedHeaders.Contains(key)) - { - continue; - } - + if (excludedHeaders.Contains(key)) { continue; } httpContext.Response.Headers[key] = value.ToArray(); }