geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r629737 - /geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java
Date Thu, 21 Feb 2008 10:35:32 GMT
Author: rickmcguire
Date: Thu Feb 21 02:35:30 2008
New Revision: 629737

URL: http://svn.apache.org/viewvc?rev=629737&view=rev
Log:
GERONIMO-3862 header names are handled in a case-sensitive manner

Patch provided by Sangjin Lee


Modified:
    geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java

Modified: geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java?rev=629737&r1=629736&r2=629737&view=diff
==============================================================================
--- geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java
(original)
+++ geronimo/sandbox/async-http-client-mina2/src/main/java/org/apache/ahc/codec/HttpMessage.java
Thu Feb 21 02:35:30 2008
@@ -223,7 +223,7 @@
         Iterator<NameValuePair> it = headers.iterator();
         while (it.hasNext()) {
             NameValuePair header = it.next();
-            if (header.getName().equals(name)) {
+            if (header.getName().equalsIgnoreCase(name)) {
                 it.remove();
             }
         }
@@ -264,7 +264,7 @@
         Iterator<NameValuePair> it = headers.iterator();
         while (it.hasNext()) {
             NameValuePair header = it.next();
-            if (header.getName().equals(name)) {
+            if (header.getName().equalsIgnoreCase(name)) {
                 return header.getValue();
             }
         }
@@ -288,7 +288,7 @@
         Iterator<NameValuePair> it = headers.iterator();
         while (it.hasNext()) {
             NameValuePair header = it.next();
-            if (header.getName().equals(name)) {
+            if (header.getName().equalsIgnoreCase(name)) {
                 values.add(header.getValue());
             }
         }



Mime
View raw message