geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r568334 - /geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java
Date Wed, 22 Aug 2007 00:00:32 GMT
Author: jgenender
Date: Tue Aug 21 17:00:30 2007
New Revision: 568334

URL: http://svn.apache.org/viewvc?rev=568334&view=rev
Log:
Add test for HTTP/1.0

Modified:
    geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java

Modified: geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java?rev=568334&r1=568333&r2=568334&view=diff
==============================================================================
--- geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java (original)
+++ geronimo/sandbox/AsyncHttpClient/src/main/java/org/apache/ahc/codec/HttpDecoder.java Tue
Aug 21 17:00:30 2007
@@ -92,7 +92,7 @@
 
     public void decodeStatus(String line, HttpResponseMessage msg) throws Exception {
         String magic = line.substring(0, 8);
-        if (!magic.equals("HTTP/1.1"))
+        if (!magic.equals("HTTP/1.1") && !magic.equals("HTTP/1.0"))
             throw new IOException("Invalid HTTP response");
 
         String status = line.substring(9, 12);



Mime
View raw message