Skip to content

Commit

Permalink
PR #12441 - changes from review
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Nov 7, 2024
1 parent d04917f commit 89cc46f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -63,7 +62,7 @@ public Set<String> getHeaderNames()
@Override
public Map<String, List<String>> getHeaders()
{
return Collections.unmodifiableMap(HttpFields.asMap(response.getHeaders()));
return HttpFields.asMap(response.getHeaders());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public Map<String, Object> getUserProperties()
}
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public Map<String, Object> getUserProperties()
}
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;
}
Expand Down

0 comments on commit 89cc46f

Please sign in to comment.