hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r409980 - /jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java
Date Sun, 28 May 2006 19:45:06 GMT
Author: olegk
Date: Sun May 28 12:45:06 2006
New Revision: 409980

URL: http://svn.apache.org/viewvc?rev=409980&view=rev
Log:
Fixed a bug in handling of empty header elements

Modified:
    jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java

Modified: jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java?rev=409980&r1=409979&r2=409980&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/HeaderElement.java Sun
May 28 12:45:06 2006
@@ -215,7 +215,7 @@
             } else if (cur == indexTo - 1) {
                 element = parse(buffer, from, indexTo);
             }
-            if (element != null && !element.getName().equals("")) {
+            if (element != null && !(element.getName().equals("") && element.getValue()
== null)) {
                 elements.add(element);
             }
             if (escaped) {



Mime
View raw message