This is an automated email from the ASF dual-hosted git repository.

rmaucher 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 f2bb44011e Always use SP for multi line headers, for consistency
f2bb44011e is described below

commit f2bb44011e243c1d156ab8ed0b98314291ea31e5
Author: remm <[email protected]>
AuthorDate: Thu Oct 15 08:22:23 2026 +0200

    Always use SP for multi line headers, for consistency
    
    Fix test.
---
 java/org/apache/coyote/http11/Http11InputBuffer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http11/Http11InputBuffer.java 
b/java/org/apache/coyote/http11/Http11InputBuffer.java
index 9d0367a8fd..fc4e27c7f6 100644
--- a/java/org/apache/coyote/http11/Http11InputBuffer.java
+++ b/java/org/apache/coyote/http11/Http11InputBuffer.java
@@ -1017,7 +1017,7 @@ public class Http11InputBuffer implements InputBuffer, 
ApplicationBufferHandler
                 } else {
                     // Copying one extra space in the buffer (since there must
                     // be at least one space inserted between the lines)
-                    byteBuffer.put(headerData.realPos, peek);
+                    byteBuffer.put(headerData.realPos, Constants.SP);
                     headerData.realPos++;
                     headerParsePos = HeaderParsePosition.HEADER_VALUE_START;
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to