diff --git a/src/main/java/com/corundumstudio/socketio/handler/AuthorizeHandler.java b/src/main/java/com/corundumstudio/socketio/handler/AuthorizeHandler.java index b7e396ed..a90a84c5 100644 --- a/src/main/java/com/corundumstudio/socketio/handler/AuthorizeHandler.java +++ b/src/main/java/com/corundumstudio/socketio/handler/AuthorizeHandler.java @@ -181,7 +181,7 @@ private boolean authorize(ChannelHandlerContext ctx, Channel channel, String ori Transport transport = null; try { - transport = Transport.valueOf(transportValue.get(0)); + transport = Transport.valueOf(transportValue.get(0).toUpperCase()); } catch (IllegalArgumentException e) { log.error("Unknown transport for request {}", req.uri()); writeAndFlushTransportError(channel, origin);