Skip to content

Commit

Permalink
Fixed - transport name should be checked in uppercase #854
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Koksharov committed Sep 6, 2022
1 parent e000976 commit 206f330
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 206f330

Please sign in to comment.