hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1770478 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java
Date Sat, 19 Nov 2016 09:35:20 GMT
Author: olegk
Date: Sat Nov 19 09:35:19 2016
New Revision: 1770478

URL: http://svn.apache.org/viewvc?rev=1770478&view=rev
Log:
Fixed handling of empty input lines by blocking message parser

Modified:
    httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java

Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java?rev=1770478&r1=1770477&r2=1770478&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/http/impl/io/AbstractMessageParser.java
Sat Nov 19 09:35:19 2016
@@ -244,7 +244,9 @@ public abstract class AbstractMessagePar
                 }
                 if (this.headLine.length() > 0) {
                     this.message = createMessage(this.headLine);
-                    break;
+                    if (this.message != null) {
+                        break;
+                    }
                 }
             }
             if (this.message == null) {



Mime
View raw message