Skip to content
Myr

urllib3 fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 8fbd6d8 · Browse files · 1 file+9 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−7 removed

  • other:+9 added−7 removed

1 file+9 added−7 removed

modified:requests/packages/urllib3/connectionpool.py+9 added-7 removed
256 unmodified lines
257 If-None-Match, etc. If None, pool headers are used. If provided,258 these headers completely replace any pool-specific headers.259260 :param retries:261 Number of retries to allow before raising262 a MaxRetryError exception.261 Number of retries to allow before raising a MaxRetryError exception.262263 :param redirect:264 Automatically handle redirects (status codes 301, 302, 303, 307),265 each redirect counts as a retry.
52 unmodified lines
318 httplib_response = self._make_request(conn, method, url,319 timeout=timeout,320 body=body, headers=headers)321322 # If we're going to release the connection in ``finally:``, then323 # the request doesn't need to know about the connection. Otherwise324 # it will also try to release it and we'll have a double-release325 # mess.326 response_conn = not release_conn and conn327328329 # Import httplib's response into our own wrapper object330 response = HTTPResponse.from_httplib(httplib_response,331 pool=self,326 connection=conn,332 connection=response_conn,333 **response_kw)334329 if release_conn:330 # The connection will be released manually in the ``finally:``331 response.connection = None332335 # else:336 # The connection will be put back into the pool when337 # ``response.release_conn()`` is called (implicitly by338 # ``response.read()``)
188 unmodified lines