From 7b400d7bb7a93152256b43b5f5b385d022b58595 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 8 Mar 2018 12:36:00 +0200 Subject: [PATCH] Fix #2810: Restore SSL proxy support --- aiohttp/client_reqrep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 5c169c07e8..b310a3e59c 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -468,7 +468,7 @@ def send(self, conn): # - most common is origin form URI if self.method == hdrs.METH_CONNECT: path = '{}:{}'.format(self.url.raw_host, self.url.port) - elif self.proxy and not self.ssl: + elif self.proxy and not self.is_ssl(): path = str(self.url) else: path = self.url.raw_path