From 9a797fe612dda1dcdb048ec57e80019a08640566 Mon Sep 17 00:00:00 2001
From: Vangelis Banos <vangelis@archive.org>
Date: Fri, 2 Mar 2018 12:34:52 +0000
Subject: [PATCH] Fix typo

---
 warcprox/mitmproxy.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/warcprox/mitmproxy.py b/warcprox/mitmproxy.py
index d92e416..6cf12dc 100644
--- a/warcprox/mitmproxy.py
+++ b/warcprox/mitmproxy.py
@@ -282,7 +282,6 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
                                 "upgrading to python >= 2.7.9 or python 3.4",
                                 self.hostname)
                     raise
-
         return self._remote_server_conn.sock
 
     def _transition_to_ssl(self):
@@ -458,7 +457,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
             if prox_rec_res:
                 prox_rec_res.close()
             if connection_is_fine:
-                self._conn_pool._put_conn(self._remote_conn)
+                self._conn_pool._put_conn(self._remote_server_conn)
             else:
                 self._remote_server_conn.sock.close()