🚧 Bugfix with HTTP Client

This commit is contained in:
Andreas Dinauer 2026-04-19 16:54:59 +02:00
parent fb6fa94926
commit 0e4fab6995
2 changed files with 3 additions and 6 deletions

View File

@ -102,8 +102,8 @@ public class Resource
}
catch (Exception e)
{
accessLog.logUpstream(context, PathConverter.toPath(requestSegments), route.target());
ResponseHandler.error(context, 502);
throw new RuntimeException(e);
}
}

View File

@ -16,10 +16,7 @@ import java.util.Map;
@ApplicationScoped
public class HeaderFilter
{
private static final List<String> HOP2HOP = List.of("Keep-Alive", "Transfer-Encoding", "TE", "Connection", "Trailer", "Upgrade", "Proxy-Authenticate", "Proxy-Authorization");
@Inject
SessionCache sessionCache;
private static final List<String> HOP2HOP = List.of("keep-alive", "transfer-encoding", "te", "connection", "trailer", "upgrade", "proxy-authenticate", "proxy-authorization");
@Inject
OidcStrategy oidcStrategy;
@ -39,7 +36,7 @@ public class HeaderFilter
List<Map.Entry<String, String>> result = new LinkedList<>();
for (Map.Entry<String, String> header : input)
{
if (!HOP2HOP.contains(header.getKey()))
if (!HOP2HOP.contains(header.getKey().toLowerCase()))
{
result.add(header);
}