PR #12441 - changes from review
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
This commit is contained in:
parent
d04917f614
commit
89cc46f500
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue