🚧 Bugfix with HTTP Client
This commit is contained in:
parent
fb6fa94926
commit
0e4fab6995
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user