Skip to content

Commit 327b8ae

Browse files
committed
Don't compute status twice
1 parent 1a245b2 commit 327b8ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/handler/WebSocketProtocol.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ public void handle(Channel channel, NettyResponseFuture<?> future, Object e) thr
9292
if (connection == null)
9393
connection = response.headers().get(HttpHeaders.Names.CONNECTION.toLowerCase(Locale.ENGLISH));
9494
boolean validConnection = HttpHeaders.Values.UPGRADE.equalsIgnoreCase(connection);
95-
96-
status = new NettyResponseStatus(future.getUri(), config, response);
9795
final boolean statusReceived = handler.onStatusReceived(status) == STATE.UPGRADE;
9896

9997
if (!statusReceived) {

0 commit comments

Comments
 (0)