From 97b5055cc1b377a3b7b2013f96589fa7b28ffb59 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 27 Jan 2018 10:17:53 +0100 Subject: [PATCH] HTTPCLIENT-1900: proxy protocol processor does not post-process CONNECT response messages --- .../main/java/org/apache/http/impl/execchain/MainClientExec.java | 1 + 1 file changed, 1 insertion(+) diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java index a932a08c1..579ffedde 100644 --- a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java +++ b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java @@ -471,6 +471,7 @@ public class MainClientExec implements ClientExecChain { this.authenticator.generateAuthResponse(connect, proxyAuthState, context); response = this.requestExecutor.execute(connect, managedConn, context); + this.requestExecutor.postProcess(response, this.proxyHttpProcessor, context); final int status = response.getStatusLine().getStatusCode(); if (status < 200) {