Skip to content

Commit

Permalink
Fix psf#3844
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespic committed Jun 27, 2017
1 parent bbeb1c3 commit 8fcbeca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions requests/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ def send(self, request, stream=False, timeout=None, verify=True, cert=None, prox

low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)

if hasattr(conn, 'proxy'):
if conn.proxy is not None and not getattr(low_conn, 'sock', None):
conn._prepare_proxy(low_conn)

try:
low_conn.putrequest(request.method,
url,
Expand Down

0 comments on commit 8fcbeca

Please sign in to comment.