Skip to content

Commit 21300f9

Browse files
committed
Fix websocket redirect
1 parent 1f3e069 commit 21300f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/org/asynchttpclient/netty/handler/WebSocketProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void call() throws Exception {
9090
return;
9191
}
9292

93-
if (exitAfterHandlingRedirect(channel, future, response, request, response.getStatus().code(), realm))
93+
if (REDIRECT_STATUSES.contains(status.getStatusCode()) && exitAfterHandlingRedirect(channel, future, response, request, response.getStatus().code(), realm))
9494
return;
9595

9696
boolean validStatus = response.getStatus().equals(SWITCHING_PROTOCOLS);

0 commit comments

Comments
 (0)