ad236f30e7
- Update to version 2.3.0 + New ``Response`` property ``is_redirect``, which is true when the library could have processed this response as a redirection (whether or not it actually did). + The ``timeout`` parameter now affects requests with both ``stream=True`` and ``stream=False`` equally. + The change in v2.0.0 to mandate explicit proxy schemes has been reverted. Proxy schemes now default to ``http://``. + The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal dictionary when references as string or viewd in the interpreter. + No longer expose Authorization or Proxy-Authorization headers on redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively. + Authorization is re-evaluated each redirect. + On redirect, pass url as native strings. + Fall-back to autodetected encoding for JSON when Unicode detection fails. + Headers set to ``None`` on the ``Session`` are now correctly not sent. + Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same response. + Stop advertising ``compress`` as a supported Content-Encoding. + The ``Response.history`` parameter is now always a list. + Many, many ``urllib3`` bugfixes.- Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character. + Assorted urllib3 fixes. + New exception: ``ContentDecodingError``. Raised instead of ``urllib3`` ``DecodeError`` exceptions. + Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6. + Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory. + Use the correct pool size for pools of connections to proxies. OBS-URL: https://build.opensuse.org/request/show/236416 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=46
29 lines
924 B
Diff
29 lines
924 B
Diff
--- a/requests/adapters.py
|
|
+++ b/requests/adapters.py
|
|
@@ -132,9 +132,6 @@
|
|
if not cert_loc:
|
|
cert_loc = DEFAULT_CA_BUNDLE_PATH
|
|
|
|
- if not cert_loc:
|
|
- raise Exception("Could not find a suitable SSL CA certificate bundle.")
|
|
-
|
|
conn.cert_reqs = 'CERT_REQUIRED'
|
|
conn.ca_certs = cert_loc
|
|
else:
|
|
--- a/requests/certs.py
|
|
+++ b/requests/certs.py
|
|
@@ -18,7 +18,7 @@
|
|
def where():
|
|
"""Return the preferred certificate bundle."""
|
|
# vendored bundle inside Requests
|
|
- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
|
|
+ return '/etc/ssl/certs/'
|
|
|
|
if __name__ == '__main__':
|
|
print(where())
|
|
--- a/MANIFEST.in
|
|
+++ b/MANIFEST.in
|
|
@@ -1 +1 @@
|
|
-include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt requests/cacert.pem
|
|
+include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt
|