hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1794172 - /httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java
Date Sat, 06 May 2017 18:30:44 GMT
Author: olegk
Date: Sat May  6 18:30:44 2017
New Revision: 1794172

URL: http://svn.apache.org/viewvc?rev=1794172&view=rev
Log:
Disable HTTP tunneling support until the problem with delineation of 200 status message in
response to CONNECT method has been resolved in HttpCore

Modified:
    httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java

Modified: httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java?rev=1794172&r1=1794171&r2=1794172&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalHttpAsyncClient.java
Sat May  6 18:30:44 2017
@@ -150,6 +150,11 @@ class InternalHttpAsyncClient extends Ab
             log.debug(exchangeId + ": preparing request execution");
         }
 
+        //TODO remove when fixed in HttpCore
+        if (route.isTunnelled()) {
+            throw new HttpException("HTTP tunneling not supported");
+        }
+
         setupContext(clientContext);
 
         final AsyncExecChain.Scope scope = new AsyncExecChain.Scope(exchangeId, route, request,
clientContext, execRuntime);



Mime
View raw message