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

rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 500156a875 Always use SP for multi line headers, for consistency
500156a875 is described below

commit 500156a8757599fded5ced3623bfa321ff1beb42
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 81274341d9..eb0fb3e7a9 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