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 3ad19d91da Fix backport - HTTP/2 has separate trailer settings for 
9.0.x
3ad19d91da is described below

commit 3ad19d91da9bdd7f4350823bcec73b2abefa0848
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Sep 30 20:27:20 2024 +0100

    Fix backport - HTTP/2 has separate trailer settings for 9.0.x
---
 test/org/apache/coyote/http2/TestHttp2Section_6_8.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_6_8.java 
b/test/org/apache/coyote/http2/TestHttp2Section_6_8.java
index 8b7ec1a6e2..e19fcb2f0f 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_6_8.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_6_8.java
@@ -21,8 +21,6 @@ import java.nio.ByteBuffer;
 import org.junit.Assert;
 import org.junit.Test;
 
-import org.apache.coyote.http11.AbstractHttp11Protocol;
-
 /**
  * Unit tests for Section 6.8 of <a 
href="https://tools.ietf.org/html/rfc7540";>RFC 7540</a>. <br>
  * The order of tests in this class is aligned with the order of the 
requirements in the RFC.
@@ -82,7 +80,7 @@ public class TestHttp2Section_6_8 extends Http2TestBase {
         // Ensure we see all the Window updates
         http2Protocol.setOverheadWindowUpdateThreshold(0);
         // Enable trailer headers
-        ((AbstractHttp11Protocol<?>) 
http2Protocol.getHttp11Protocol()).setAllowedTrailerHeaders(TRAILER_HEADER_NAME);
+        http2Protocol.setAllowedTrailerHeaders(TRAILER_HEADER_NAME);
 
         Thread.sleep(PING_ACK_DELAY_MS + TIMING_MARGIN_MS);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to