hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r573867 - /jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
Date Sat, 08 Sep 2007 15:56:14 GMT
Author: rolandw
Date: Sat Sep  8 08:56:14 2007
New Revision: 573867

URL: http://svn.apache.org/viewvc?rev=573867&view=rev
Log:
fixed broken example

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java?rev=573867&r1=573866&r2=573867&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
Sat Sep  8 08:56:14 2007
@@ -46,6 +46,7 @@
 import org.apache.http.HttpResponseFactory;
 import org.apache.http.HttpStatus;
 import org.apache.http.HttpVersion;
+import org.apache.http.ProtocolVersion;
 import org.apache.http.impl.DefaultConnectionReuseStrategy;
 import org.apache.http.impl.DefaultHttpResponseFactory;
 import org.apache.http.impl.nio.DefaultClientIOEventDispatch;
@@ -246,7 +247,7 @@
                         System.out.println(conn +  ": [client] >> " + headers[i].toString());
                     }
                     
-                    HttpVersion ver = request.getRequestLine().getHttpVersion();
+                    ProtocolVersion ver = request.getRequestLine().getProtocolVersion();
                     if (!ver.lessEquals(HttpVersion.HTTP_1_1)) {
                         // Downgrade protocol version if greater than HTTP/1.1 
                         ver = HttpVersion.HTTP_1_1;



Mime
View raw message