Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the incorrect usage/value of 'Connection: upgrade' #4525

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -266,7 +266,7 @@ private void setUpgradeRequestHeaders(ChannelHandlerContext ctx, HttpRequest req
builder.append(part);
builder.append(',');
}
builder.append(HttpHeaderNames.UPGRADE);
builder.append(HttpHeaderValues.UPGRADE);
request.headers().set(HttpHeaderNames.CONNECTION, builder.toString());
}
}
Expand Up @@ -193,9 +193,9 @@ public final class HttpHeaderValues {
*/
public static final AsciiString TRAILERS = new AsciiString("trailers");
/**
* {@code "Upgrade"}
* {@code "upgrade"}
*/
public static final AsciiString UPGRADE = new AsciiString("Upgrade");
public static final AsciiString UPGRADE = new AsciiString("upgrade");
/**
* {@code "websocket"}
*/
Expand Down