🚧 Fixed bug

This commit is contained in:
Andreas Dinauer 2026-03-15 15:56:05 +01:00
parent 4d3a40009b
commit 0bc2a63471

View File

@ -85,9 +85,16 @@ public class ProxyResource
{ {
HttpRequest.Builder builder = HttpRequest.newBuilder().method(method.name(), HttpRequest.BodyPublishers.noBody()).uri(URI.create(forwardRoot + "/" + forwardPath)); HttpRequest.Builder builder = HttpRequest.newBuilder().method(method.name(), HttpRequest.BodyPublishers.noBody()).uri(URI.create(forwardRoot + "/" + forwardPath));
for (Map.Entry<String, String> entry : headers.entries()) for (Map.Entry<String, String> entry : headers.entries())
{
try
{ {
builder.header(entry.getKey(), entry.getValue()); builder.header(entry.getKey(), entry.getValue());
} }
catch (Exception e)
{
// empty
}
}
if (auth != null && Strings.CI.equals("OIDC", strategy)) if (auth != null && Strings.CI.equals("OIDC", strategy))
{ {
builder.header("Authorization", String.format("Bearer %s", sessionRepository.get(auth))); builder.header("Authorization", String.format("Bearer %s", sessionRepository.get(auth)));