Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a70b80

Browse files
committed
Remove dead code
Motivation:We used to have a double lookup for Connection header, based on case.But HttpHeaders lookup is case insensitive and I forgot to remove thiscode that now performs the lookup twice.Modification:Remove dead codeResult:Dead code removed
1 parent916b8aa commit7a70b80

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎client/src/main/java/org/asynchttpclient/netty/handler/WebSocketHandler.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ public void call() throws Exception {
8787
booleanvalidStatus =response.status().equals(SWITCHING_PROTOCOLS);
8888
booleanvalidUpgrade =response.headers().get(UPGRADE) !=null;
8989
Stringconnection =response.headers().get(CONNECTION);
90-
if (connection ==null)
91-
connection =response.headers().get(CONNECTION);
9290
booleanvalidConnection =HttpHeaderValues.UPGRADE.contentEqualsIgnoreCase(connection);
9391
booleanstatusReceived =handler.onStatusReceived(status) ==State.CONTINUE;
9492

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp