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 2021/06/16 10:46:29 UTC

[tomcat] branch 10.0.x updated: Fix test broken by response buffer fixes

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 df77232  Fix test broken by response buffer fixes
df77232 is described below

commit df772325c7880d6e690208b23d884e959f28b3f0
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 16 11:45:42 2021 +0100

    Fix test broken by response buffer fixes
    
    The 8192 byte response body fills the response buffer but does not (now)
    trigger a commit so Tomcat is able to set the content-length header in
    post-processing.
---
 test/org/apache/coyote/http2/TestHttp2Section_6_9.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/org/apache/coyote/http2/TestHttp2Section_6_9.java b/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
index dd77220..6fecb93 100644
--- a/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
+++ b/test/org/apache/coyote/http2/TestHttp2Section_6_9.java
@@ -193,6 +193,7 @@ public class TestHttp2Section_6_9 extends Http2TestBase {
         Assert.assertEquals(
                 "3-HeadersStart\n" +
                 "3-Header-[:status]-[200]\n" +
+                "3-Header-[content-length]-[8192]\n" +
                 "3-Header-[date]-["+ DEFAULT_DATE + "]\n" +
                 "3-HeadersEnd\n" +
                 "3-Body-4096\n", output.getTrace());

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