PR #12441 - changes from review

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
This commit is contained in:
Lachlan Roberts 2024-11-07 16:25:17 +11:00
parent d04917f614
commit 89cc46f500
No known key found for this signature in database
GPG Key ID: 5663FB7A8FF7E348
3 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,6 @@
package org.eclipse.jetty.websocket.server.internal;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -63,7 +62,7 @@ class UpgradeResponseDelegate implements UpgradeResponse
@Override
public Map<String, List<String>> getHeaders()
{
return Collections.unmodifiableMap(HttpFields.asMap(response.getHeaders()));
return HttpFields.asMap(response.getHeaders());
}
@Override

View File

@ -166,7 +166,8 @@ public class JakartaWebSocketCreator implements WebSocketCreator
}
catch (Throwable x)
{
LOG.warn("Unable to create websocket: {}", config.getEndpointClass().getName(), x);
if (LOG.isDebugEnabled())
LOG.debug("Unable to create websocket: {}", config.getEndpointClass().getName(), x);
Response.writeError(request, response, callback, HttpStatus.INTERNAL_SERVER_ERROR_500, "Unable to create WebSocket");
return null;
}

View File

@ -166,7 +166,8 @@ public class JakartaWebSocketCreator implements WebSocketCreator
}
catch (Throwable x)
{
LOG.warn("Unable to create WebSocket: {}", config.getEndpointClass().getName(), x);
if (LOG.isDebugEnabled())
LOG.debug("Unable to create WebSocket: {}", config.getEndpointClass().getName(), x);
Response.writeError(request, response, callback, HttpStatus.INTERNAL_SERVER_ERROR_500, "Unable to create WebSocket");
return null;
}