🚧 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) catch (Exception e)
{ {
accessLog.logUpstream(context, PathConverter.toPath(requestSegments), route.target());
ResponseHandler.error(context, 502); ResponseHandler.error(context, 502);
throw new RuntimeException(e);
} }
} }

View File

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