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

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


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 3778312  Improve comments. Remove unnecessary code.
3778312 is described below

commit 37783122eca30e77b486136581bf757278c50aa4
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Mar 8 15:51:42 2022 +0000

    Improve comments. Remove unnecessary code.
---
 java/org/apache/coyote/http11/Http11InputBuffer.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/java/org/apache/coyote/http11/Http11InputBuffer.java 
b/java/org/apache/coyote/http11/Http11InputBuffer.java
index 2931f78..e66dc4c 100644
--- a/java/org/apache/coyote/http11/Http11InputBuffer.java
+++ b/java/org/apache/coyote/http11/Http11InputBuffer.java
@@ -845,8 +845,9 @@ public class Http11InputBuffer implements InputBuffer, 
ApplicationBufferHandler
     /**
      * Parse an HTTP header.
      *
-     * @return false after reading a blank line (which indicates that the
-     * HTTP header parsing is done
+     * @return One of {@link HeaderParseStatus#NEED_MORE_DATA},
+     * {@link HeaderParseStatus#HAVE_MORE_HEADERS} or
+     * {@link HeaderParseStatus#DONE}.
      */
     private HeaderParseStatus parseHeader() throws IOException {
 
@@ -854,8 +855,7 @@ public class Http11InputBuffer implements InputBuffer, 
ApplicationBufferHandler
 
             // Read new bytes if needed
             if (byteBuffer.position() >= byteBuffer.limit()) {
-                if (!fill(false)) {// parse header
-                    headerParsePos = HeaderParsePosition.HEADER_START;
+                if (!fill(false)) {
                     return HeaderParseStatus.NEED_MORE_DATA;
                 }
             }

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

Reply via email to