Disable HTTP tunneling support until the problem with delineation of 200 status message in response to CONNECT method has been resolved in HttpCore

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794172 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2017-05-06 18:30:44 +00:00
parent 922a9ac545
commit c7a52d51c0
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ class InternalHttpAsyncClient extends AbstractHttpAsyncClientBase {
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);