This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4a66bc2d41 Fix typo - thanks to Han Li
4a66bc2d41 is described below
commit 4a66bc2d415244af17cb443fcf8fbeddd51b95bc
Author: Mark Thomas <[email protected]>
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 fa78585a75..1ac42135f7 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: [email protected]
For additional commands, e-mail: [email protected]