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 80321a422a Fix tests. Stricter host checking rejected port value of
"-1"
80321a422a is described below
commit 80321a422a403cc6f810829fd24d0c038abf5d3e
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Aug 8 20:30:50 2022 +0100
Fix tests. Stricter host checking rejected port value of "-1"
---
test/org/apache/coyote/http2/TestHttp2Section_8_1.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
index 4dca8550fe..981bf20c5b 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_8_1.java
@@ -186,6 +186,8 @@ public class TestHttp2Section_8_1 extends Http2TestBase {
@Test
public void testUndefinedPseudoHeader() throws Exception {
+ http2Connect();
+
List<Header> headers = new ArrayList<>(5);
headers.add(new Header(":method", "GET"));
headers.add(new Header(":scheme", "http"));
@@ -199,6 +201,8 @@ public class TestHttp2Section_8_1 extends Http2TestBase {
@Test
public void testInvalidPseudoHeader() throws Exception {
+ http2Connect();
+
List<Header> headers = new ArrayList<>(5);
headers.add(new Header(":method", "GET"));
headers.add(new Header(":scheme", "http"));
@@ -407,8 +411,6 @@ public class TestHttp2Section_8_1 extends Http2TestBase {
private void doInvalidPseudoHeaderTest(List<Header> headers) throws
Exception {
- http2Connect();
-
byte[] headersFrameHeader = new byte[9];
ByteBuffer headersPayload = ByteBuffer.allocate(128);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]