This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new be2e727381 Fix typo - thanks to Han Li
be2e727381 is described below
commit be2e7273811a94e1317e964e0fe18afda5db0ad5
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 c2749fe96f..979c7369d8 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -59,7 +59,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();
@@ -67,11 +67,11 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
StreamProcessor.prepareHeaders(null, response, 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;
@@ -293,7 +293,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]