From 4f7df3d0a22b727d9970f1d1f022e31dadb24ccf Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 27 Jan 2018 10:20:28 +0100 Subject: [PATCH] HTTPCLIENT-1900: proxy protocol processor in the CONNECT exec interceptor does not post-process CONNECT response messages --- .../org/apache/hc/client5/http/impl/classic/ConnectExec.java | 1 + 1 file changed, 1 insertion(+) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ConnectExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ConnectExec.java index aa31790dd..05884650d 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ConnectExec.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ConnectExec.java @@ -206,6 +206,7 @@ public final class ConnectExec implements ExecChainHandler { this.authenticator.addAuthResponse(proxy, ChallengeType.PROXY, connect, proxyAuthExchange, context); response = execRuntime.execute(connect, context); + this.proxyHttpProcessor.process(response, response.getEntity(), context); final int status = response.getCode(); if (status < HttpStatus.SC_SUCCESS) {