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 2022/03/08 15:53:16 UTC
[tomcat] branch 9.0.x updated: Improve comments. Remove unnecessary code.
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 32e7fc0 Improve comments. Remove unnecessary code.
32e7fc0 is described below
commit 32e7fc097672067333eedbd8669f4c929141e162
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 413a1c4..fd7b755 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org