You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/08/03 11:38:45 UTC
[tomcat] branch 10.0.x updated: Fix typo - thanks to Han Li
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 5d3d244869 Fix typo - thanks to Han Li
5d3d244869 is described below
commit 5d3d2448698e7f454983567f583fb20f5a24805d
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Aug 3 12:38:27 2022 +0100
Fix typo - thanks to Han Li
---
java/org/apache/coyote/http2/Stream.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/java/org/apache/coyote/http2/Stream.java b/java/org/apache/coyote/http2/Stream.java
index 05798605ee..44dc56d105 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -62,7 +62,7 @@ class Stream extends AbstractNonZeroStream implements HeaderEmitter {
private static final Integer HTTP_UPGRADE_STREAM = Integer.valueOf(1);
- private static final Set<String> HTTP_CONNECTION_SPECIFC_HEADERS = new HashSet<>();
+ private static final Set<String> HTTP_CONNECTION_SPECIFIC_HEADERS = new HashSet<>();
static {
Response response = new Response();
@@ -70,11 +70,11 @@ class Stream extends AbstractNonZeroStream implements HeaderEmitter {
StreamProcessor.prepareHeaders(null, response, true, null, null);
ACK_HEADERS = response.getMimeHeaders();
- HTTP_CONNECTION_SPECIFC_HEADERS.add("connection");
- HTTP_CONNECTION_SPECIFC_HEADERS.add("proxy-connection");
- HTTP_CONNECTION_SPECIFC_HEADERS.add("keep-alive");
- HTTP_CONNECTION_SPECIFC_HEADERS.add("transfer-encoding");
- HTTP_CONNECTION_SPECIFC_HEADERS.add("upgrade");
+ HTTP_CONNECTION_SPECIFIC_HEADERS.add("connection");
+ HTTP_CONNECTION_SPECIFIC_HEADERS.add("proxy-connection");
+ HTTP_CONNECTION_SPECIFIC_HEADERS.add("keep-alive");
+ HTTP_CONNECTION_SPECIFIC_HEADERS.add("transfer-encoding");
+ HTTP_CONNECTION_SPECIFIC_HEADERS.add("upgrade");
}
private volatile long contentLengthReceived = 0;
@@ -296,7 +296,7 @@ class Stream extends AbstractNonZeroStream implements HeaderEmitter {
getConnectionId(), getIdAsString(), name));
}
- if (HTTP_CONNECTION_SPECIFC_HEADERS.contains(name)) {
+ if (HTTP_CONNECTION_SPECIFIC_HEADERS.contains(name)) {
throw new HpackException(sm.getString("stream.header.connection",
getConnectionId(), getIdAsString(), name));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org