Skip to content
Myr

Merge pull request #1049 from Lukasa/master

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

Correctly identify certificate filenames.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 60b4843, 09da192 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/adapters.py+2 added-2 removed
11 unmodified lines
1213from .models import Response14from .packages.urllib3.poolmanager import PoolManager, proxy_from_url15from .hooks import dispatch_hook16from .compat import urlparse16from .compat import urlparse, basestring17from .utils import DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers18from .structures import CaseInsensitiveDict19from .packages.urllib3.exceptions import MaxRetryError20from .packages.urllib3.exceptions import TimeoutError
53 unmodified lines
74 conn.cert_reqs = 'CERT_NONE'75 conn.ca_certs = None7677 if cert:78 if len(cert) == 2:78 if not isinstance(cert, basestring):79 conn.cert_file = cert[0]80 conn.key_file = cert[1]81 else:82 conn.cert_file = cert
92 unmodified lines