HISTORY.md
This file
Path
HISTORY.md
1,650 lines · 47.8 KiB · Markdown
Last changed by
Merge pull request #5160 from OrangutanGaming/change-githubNate Prewittbefore adoptiond79024f
History of this fileTake it
1Release History2===============34dev5---67**Bugfixes**89- \[Short description of non-trivial change.\]10112.22.0 (2019-05-15)12-------------------1314**Dependencies**1516- Requests now supports urllib3 v1.25.2.17 (note: 1.25.0 and 1.25.1 are incompatible)1819**Deprecations**2021- Requests has officially stopped support for Python 3.4.22232.21.0 (2018-12-10)24-------------------2526**Dependencies**2728- Requests now supports idna v2.8.29302.20.1 (2018-11-08)31-------------------3233**Bugfixes**3435- Fixed bug with unintended Authorization header stripping for36 redirects using default ports (http/80, https/443).37382.20.0 (2018-10-18)39-------------------4041**Bugfixes**4243- Content-Type header parsing is now case-insensitive (e.g.44 charset=utf8 v Charset=utf8).45- Fixed exception leak where certain redirect urls would raise46 uncaught urllib3 exceptions.47- Requests removes Authorization header from requests redirected48 from https to http on the same hostname. (CVE-2018-18074)49- `should_bypass_proxies` now handles URIs without hostnames (e.g.50 files).5152**Dependencies**5354- Requests now supports urllib3 v1.24.5556**Deprecations**5758- Requests has officially stopped support for Python 2.6.59602.19.1 (2018-06-14)61-------------------6263**Bugfixes**6465- Fixed issue where status\_codes.py's `init` function failed trying66 to append to a `__doc__` value of `None`.67682.19.0 (2018-06-12)69-------------------7071**Improvements**7273- Warn user about possible slowdown when using cryptography version74 < 1.3.475- Check for invalid host in proxy URL, before forwarding request to76 adapter.77- Fragments are now properly maintained across redirects. (RFC723178 7.1.2)79- Removed use of cgi module to expedite library load time.80- Added support for SHA-256 and SHA-512 digest auth algorithms.81- Minor performance improvement to `Request.content`.82- Migrate to using collections.abc for 3.7 compatibility.8384**Bugfixes**8586- Parsing empty `Link` headers with `parse_header_links()` no longer87 return one bogus entry.88- Fixed issue where loading the default certificate bundle from a zip89 archive would raise an `IOError`.90- Fixed issue with unexpected `ImportError` on windows system which do91 not support `winreg` module.92- DNS resolution in proxy bypass no longer includes the username and93 password in the request. This also fixes the issue of DNS queries94 failing on macOS.95- Properly normalize adapter prefixes for url comparison.96- Passing `None` as a file pointer to the `files` param no longer97 raises an exception.98- Calling `copy` on a `RequestsCookieJar` will now preserve the cookie99 policy correctly.100101**Dependencies**102103- We now support idna v2.7.104- We now support urllib3 v1.23.1051062.18.4 (2017-08-15)107-------------------108109**Improvements**110111- Error messages for invalid headers now include the header name for112 easier debugging113114**Dependencies**115116- We now support idna v2.6.1171182.18.3 (2017-08-02)119-------------------120121**Improvements**122123- Running `$ python -m requests.help` now includes the installed124 version of idna.125126**Bugfixes**127128- Fixed issue where Requests would raise `ConnectionError` instead of129 `SSLError` when encountering SSL problems when using urllib3 v1.22.1301312.18.2 (2017-07-25)132-------------------133134**Bugfixes**135136- `requests.help` no longer fails on Python 2.6 due to the absence of137 `ssl.OPENSSL_VERSION_NUMBER`.138139**Dependencies**140141- We now support urllib3 v1.22.1421432.18.1 (2017-06-14)144-------------------145146**Bugfixes**147148- Fix an error in the packaging whereby the `*.whl` contained149 incorrect data that regressed the fix in v2.17.3.1501512.18.0 (2017-06-14)152-------------------153154**Improvements**155156- `Response` is now a context manager, so can be used directly in a157 `with` statement without first having to be wrapped by158 `contextlib.closing()`.159160**Bugfixes**161162- Resolve installation failure if multiprocessing is not available163- Resolve tests crash if multiprocessing is not able to determine the164 number of CPU cores165- Resolve error swallowing in utils set\_environ generator1661672.17.3 (2017-05-29)168-------------------169170**Improvements**171172- Improved `packages` namespace identity support, for monkeypatching173 libraries.1741752.17.2 (2017-05-29)176-------------------177178**Improvements**179180- Improved `packages` namespace identity support, for monkeypatching181 libraries.1821832.17.1 (2017-05-29)184-------------------185186**Improvements**187188- Improved `packages` namespace identity support, for monkeypatching189 libraries.1901912.17.0 (2017-05-29)192-------------------193194**Improvements**195196- Removal of the 301 redirect cache. This improves thread-safety.1971982.16.5 (2017-05-28)199-------------------200201- Improvements to `$ python -m requests.help`.2022032.16.4 (2017-05-27)204-------------------205206- Introduction of the `$ python -m requests.help` command, for207 debugging with maintainers!2082092.16.3 (2017-05-27)210-------------------211212- Further restored the `requests.packages` namespace for compatibility213 reasons.2142152.16.2 (2017-05-27)216-------------------217218- Further restored the `requests.packages` namespace for compatibility219 reasons.220221No code modification (noted below) should be necessary any longer.2222232.16.1 (2017-05-27)224-------------------225226- Restored the `requests.packages` namespace for compatibility227 reasons.228- Bugfix for `urllib3` version parsing.229230**Note**: code that was written to import against the231`requests.packages` namespace previously will have to import code that232rests at this module-level now.233234For example:235236 from requests.packages.urllib3.poolmanager import PoolManager237238Will need to be re-written to be:239240 from requests.packages import urllib3241 urllib3.poolmanager.PoolManager242243Or, even better:244245 from urllib3.poolmanager import PoolManager2462472.16.0 (2017-05-26)248-------------------249250- Unvendor ALL the things!2512522.15.1 (2017-05-26)253-------------------254255- Everyone makes mistakes.2562572.15.0 (2017-05-26)258-------------------259260**Improvements**261262- Introduction of the `Response.next` property, for getting the next263 `PreparedResponse` from a redirect chain (when264 `allow_redirects=False`).265- Internal refactoring of `__version__` module.266267**Bugfixes**268269- Restored once-optional parameter for270 `requests.utils.get_environ_proxies()`.2712722.14.2 (2017-05-10)273-------------------274275**Bugfixes**276277- Changed a less-than to an equal-to and an or in the dependency278 markers to widen compatibility with older setuptools releases.2792802.14.1 (2017-05-09)281-------------------282283**Bugfixes**284285- Changed the dependency markers to widen compatibility with older pip286 releases.2872882.14.0 (2017-05-09)289-------------------290291**Improvements**292293- It is now possible to pass `no_proxy` as a key to the `proxies`294 dictionary to provide handling similar to the `NO_PROXY` environment295 variable.296- When users provide invalid paths to certificate bundle files or297 directories Requests now raises `IOError`, rather than failing at298 the time of the HTTPS request with a fairly inscrutable certificate299 validation error.300- The behavior of `SessionRedirectMixin` was slightly altered.301 `resolve_redirects` will now detect a redirect by calling302 `get_redirect_target(response)` instead of directly querying303 `Response.is_redirect` and `Response.headers['location']`. Advanced304 users will be able to process malformed redirects more easily.305- Changed the internal calculation of elapsed request time to have306 higher resolution on Windows.307- Added `win_inet_pton` as conditional dependency for the `[socks]`308 extra on Windows with Python 2.7.309- Changed the proxy bypass implementation on Windows: the proxy bypass310 check doesn't use forward and reverse DNS requests anymore311- URLs with schemes that begin with `http` but are not `http` or312 `https` no longer have their host parts forced to lowercase.313314**Bugfixes**315316- Much improved handling of non-ASCII `Location` header values in317 redirects. Fewer `UnicodeDecodeErrors` are encountered on Python 2,318 and Python 3 now correctly understands that Latin-1 is unlikely to319 be the correct encoding.320- If an attempt to `seek` file to find out its length fails, we now321 appropriately handle that by aborting our content-length322 calculations.323- Restricted `HTTPDigestAuth` to only respond to auth challenges made324 on 4XX responses, rather than to all auth challenges.325- Fixed some code that was firing `DeprecationWarning` on Python 3.6.326- The dismayed person emoticon (`/o\\`) no longer has a big head. I'm327 sure this is what you were all worrying about most.328329**Miscellaneous**330331- Updated bundled urllib3 to v1.21.1.332- Updated bundled chardet to v3.0.2.333- Updated bundled idna to v2.5.334- Updated bundled certifi to 2017.4.17.3353362.13.0 (2017-01-24)337-------------------338339**Features**340341- Only load the `idna` library when we've determined we need it. This342 will save some memory for users.343344**Miscellaneous**345346- Updated bundled urllib3 to 1.20.347- Updated bundled idna to 2.2.3483492.12.5 (2017-01-18)350-------------------351352**Bugfixes**353354- Fixed an issue with JSON encoding detection, specifically detecting355 big-endian UTF-32 with BOM.3563572.12.4 (2016-12-14)358-------------------359360**Bugfixes**361362- Fixed regression from 2.12.2 where non-string types were rejected in363 the basic auth parameters. While support for this behaviour has been364 readded, the behaviour is deprecated and will be removed in the365 future.3663672.12.3 (2016-12-01)368-------------------369370**Bugfixes**371372- Fixed regression from v2.12.1 for URLs with schemes that begin with373 "http". These URLs have historically been processed as though they374 were HTTP-schemed URLs, and so have had parameters added. This was375 removed in v2.12.2 in an overzealous attempt to resolve problems376 with IDNA-encoding those URLs. This change was reverted: the other377 fixes for IDNA-encoding have been judged to be sufficient to return378 to the behaviour Requests had before v2.12.0.3793802.12.2 (2016-11-30)381-------------------382383**Bugfixes**384385- Fixed several issues with IDNA-encoding URLs that are technically386 invalid but which are widely accepted. Requests will now attempt to387 IDNA-encode a URL if it can but, if it fails, and the host contains388 only ASCII characters, it will be passed through optimistically.389 This will allow users to opt-in to using IDNA2003 themselves if they390 want to, and will also allow technically invalid but still common391 hostnames.392- Fixed an issue where URLs with leading whitespace would raise393 `InvalidSchema` errors.394- Fixed an issue where some URLs without the HTTP or HTTPS schemes395 would still have HTTP URL preparation applied to them.396- Fixed an issue where Unicode strings could not be used in basic397 auth.398- Fixed an issue encountered by some Requests plugins where399 constructing a Response object would cause `Response.content` to400 raise an `AttributeError`.4014022.12.1 (2016-11-16)403-------------------404405**Bugfixes**406407- Updated setuptools 'security' extra for the new PyOpenSSL backend in408 urllib3.409410**Miscellaneous**411412- Updated bundled urllib3 to 1.19.1.4134142.12.0 (2016-11-15)415-------------------416417**Improvements**418419- Updated support for internationalized domain names from IDNA2003 to420 IDNA2008. This updated support is required for several forms of IDNs421 and is mandatory for .de domains.422- Much improved heuristics for guessing content lengths: Requests will423 no longer read an entire `StringIO` into memory.424- Much improved logic for recalculating `Content-Length` headers for425 `PreparedRequest` objects.426- Improved tolerance for file-like objects that have no `tell` method427 but do have a `seek` method.428- Anything that is a subclass of `Mapping` is now treated like a429 dictionary by the `data=` keyword argument.430- Requests now tolerates empty passwords in proxy credentials, rather431 than stripping the credentials.432- If a request is made with a file-like object as the body and that433 request is redirected with a 307 or 308 status code, Requests will434 now attempt to rewind the body object so it can be replayed.435436**Bugfixes**437438- When calling `response.close`, the call to `close` will be439 propagated through to non-urllib3 backends.440- Fixed issue where the `ALL_PROXY` environment variable would be441 preferred over scheme-specific variables like `HTTP_PROXY`.442- Fixed issue where non-UTF8 reason phrases got severely mangled by443 falling back to decoding using ISO 8859-1 instead.444- Fixed a bug where Requests would not correctly correlate cookies set445 when using custom Host headers if those Host headers did not use the446 native string type for the platform.447448**Miscellaneous**449450- Updated bundled urllib3 to 1.19.451- Updated bundled certifi certs to 2016.09.26.4524532.11.1 (2016-08-17)454-------------------455456**Bugfixes**457458- Fixed a bug when using `iter_content` with `decode_unicode=True` for459 streamed bodies would raise `AttributeError`. This bug was460 introduced in 2.11.461- Strip Content-Type and Transfer-Encoding headers from the header462 block when following a redirect that transforms the verb from463 POST/PUT to GET.4644652.11.0 (2016-08-08)466-------------------467468**Improvements**469470- Added support for the `ALL_PROXY` environment variable.471- Reject header values that contain leading whitespace or newline472 characters to reduce risk of header smuggling.473474**Bugfixes**475476- Fixed occasional `TypeError` when attempting to decode a JSON477 response that occurred in an error case. Now correctly returns a478 `ValueError`.479- Requests would incorrectly ignore a non-CIDR IP address in the480 `NO_PROXY` environment variables: Requests now treats it as a481 specific IP.482- Fixed a bug when sending JSON data that could cause us to encounter483 obscure OpenSSL errors in certain network conditions (yes, really).484- Added type checks to ensure that `iter_content` only accepts485 integers and `None` for chunk sizes.486- Fixed issue where responses whose body had not been fully consumed487 would have the underlying connection closed but not returned to the488 connection pool, which could cause Requests to hang in situations489 where the `HTTPAdapter` had been configured to use a blocking490 connection pool.491492**Miscellaneous**493494- Updated bundled urllib3 to 1.16.495- Some previous releases accidentally accepted non-strings as496 acceptable header values. This release does not.4974982.10.0 (2016-04-29)499-------------------500501**New Features**502503- SOCKS Proxy Support! (requires PySocks;504 `$ pip install requests[socks]`)505506**Miscellaneous**507508- Updated bundled urllib3 to 1.15.1.5095102.9.2 (2016-04-29)511------------------512513**Improvements**514515- Change built-in CaseInsensitiveDict (used for headers) to use516 OrderedDict as its underlying datastore.517518**Bugfixes**519520- Don't use redirect\_cache if allow\_redirects=False521- When passed objects that throw exceptions from `tell()`, send them522 via chunked transfer encoding instead of failing.523- Raise a ProxyError for proxy related connection issues.5245252.9.1 (2015-12-21)526------------------527528**Bugfixes**529530- Resolve regression introduced in 2.9.0 that made it impossible to531 send binary strings as bodies in Python 3.532- Fixed errors when calculating cookie expiration dates in certain533 locales.534535**Miscellaneous**536537- Updated bundled urllib3 to 1.13.1.5385392.9.0 (2015-12-15)540------------------541542**Minor Improvements** (Backwards compatible)543544- The `verify` keyword argument now supports being passed a path to a545 directory of CA certificates, not just a single-file bundle.546- Warnings are now emitted when sending files opened in text mode.547- Added the 511 Network Authentication Required status code to the548 status code registry.549550**Bugfixes**551552- For file-like objects that are not sought to the very beginning, we553 now send the content length for the number of bytes we will actually554 read, rather than the total size of the file, allowing partial file555 uploads.556- When uploading file-like objects, if they are empty or have no557 obvious content length we set `Transfer-Encoding: chunked` rather558 than `Content-Length: 0`.559- We correctly receive the response in buffered mode when uploading560 chunked bodies.561- We now handle being passed a query string as a bytestring on Python562 3, by decoding it as UTF-8.563- Sessions are now closed in all cases (exceptional and not) when564 using the functional API rather than leaking and waiting for the565 garbage collector to clean them up.566- Correctly handle digest auth headers with a malformed `qop`567 directive that contains no token, by treating it the same as if no568 `qop` directive was provided at all.569- Minor performance improvements when removing specific cookies by570 name.571572**Miscellaneous**573574- Updated urllib3 to 1.13.5755762.8.1 (2015-10-13)577------------------578579**Bugfixes**580581- Update certificate bundle to match `certifi` 2015.9.6.2's weak582 certificate bundle.583- Fix a bug in 2.8.0 where requests would raise `ConnectTimeout`584 instead of `ConnectionError`585- When using the PreparedRequest flow, requests will now correctly586 respect the `json` parameter. Broken in 2.8.0.587- When using the PreparedRequest flow, requests will now correctly588 handle a Unicode-string method name on Python 2. Broken in 2.8.0.5895902.8.0 (2015-10-05)591------------------592593**Minor Improvements** (Backwards Compatible)594595- Requests now supports per-host proxies. This allows the `proxies`596 dictionary to have entries of the form597 `{'<scheme>://<hostname>': '<proxy>'}`. Host-specific proxies will598 be used in preference to the previously-supported scheme-specific599 ones, but the previous syntax will continue to work.600- `Response.raise_for_status` now prints the URL that failed as part601 of the exception message.602- `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,603 defaulting to `False`. When `True`, errors parsing `.netrc` files604 cause exceptions to be thrown.605- Change to bundled projects import logic to make it easier to606 unbundle requests downstream.607- Changed the default User-Agent string to avoid leaking data on608 Linux: now contains only the requests version.609610**Bugfixes**611612- The `json` parameter to `post()` and friends will now only be used613 if neither `data` nor `files` are present, consistent with the614 documentation.615- We now ignore empty fields in the `NO_PROXY` environment variable.616- Fixed problem where `httplib.BadStatusLine` would get raised if617 combining `stream=True` with `contextlib.closing`.618- Prevented bugs where we would attempt to return the same connection619 back to the connection pool twice when sending a Chunked body.620- Miscellaneous minor internal changes.621- Digest Auth support is now thread safe.622623**Updates**624625- Updated urllib3 to 1.12.6266272.7.0 (2015-05-03)628------------------629630This is the first release that follows our new release process. For631more, see [our632documentation](http://docs.python-requests.org/en/latest/community/release-process/).633634**Bugfixes**635636- Updated urllib3 to 1.10.4, resolving several bugs involving chunked637 transfer encoding and response framing.6386392.6.2 (2015-04-23)640------------------641642**Bugfixes**643644- Fix regression where compressed data that was sent as chunked data645 was not properly decompressed. (\#2561)6466472.6.1 (2015-04-22)648------------------649650**Bugfixes**651652- Remove VendorAlias import machinery introduced in v2.5.2.653- Simplify the PreparedRequest.prepare API: We no longer require the654 user to pass an empty list to the hooks keyword argument. (c.f.655 \#2552)656- Resolve redirects now receives and forwards all of the original657 arguments to the adapter. (\#2503)658- Handle UnicodeDecodeErrors when trying to deal with a unicode URL659 that cannot be encoded in ASCII. (\#2540)660- Populate the parsed path of the URI field when performing Digest661 Authentication. (\#2426)662- Copy a PreparedRequest's CookieJar more reliably when it is not an663 instance of RequestsCookieJar. (\#2527)6646652.6.0 (2015-03-14)666------------------667668**Bugfixes**669670- CVE-2015-2296: Fix handling of cookies on redirect. Previously a671 cookie without a host value set would use the hostname for the672 redirected URL exposing requests users to session fixation attacks673 and potentially cookie stealing. This was disclosed privately by674 Matthew Daley of [BugFuzz](https://bugfuzz.com). This affects all675 versions of requests from v2.1.0 to v2.5.3 (inclusive on both ends).676- Fix error when requests is an `install_requires` dependency and677 `python setup.py test` is run. (\#2462)678- Fix error when urllib3 is unbundled and requests continues to use679 the vendored import location.680- Include fixes to `urllib3`'s header handling.681- Requests' handling of unvendored dependencies is now more682 restrictive.683684**Features and Improvements**685686- Support bytearrays when passed as parameters in the `files`687 argument. (\#2468)688- Avoid data duplication when creating a request with `str`, `bytes`,689 or `bytearray` input to the `files` argument.6906912.5.3 (2015-02-24)692------------------693694**Bugfixes**695696- Revert changes to our vendored certificate bundle. For more context697 see (\#2455, \#2456, and <https://bugs.python.org/issue23476>)6986992.5.2 (2015-02-23)700------------------701702**Features and Improvements**703704- Add sha256 fingerprint support.705 ([shazow/urllib3\#540](https://github.com/shazow/urllib3/pull/540))706- Improve the performance of headers.707 ([shazow/urllib3\#544](https://github.com/shazow/urllib3/pull/544))708709**Bugfixes**710711- Copy pip's import machinery. When downstream redistributors remove712 requests.packages.urllib3 the import machinery will continue to let713 those same symbols work. Example usage in requests' documentation714 and 3rd-party libraries relying on the vendored copies of urllib3715 will work without having to fallback to the system urllib3.716- Attempt to quote parts of the URL on redirect if unquoting and then717 quoting fails. (\#2356)718- Fix filename type check for multipart form-data uploads. (\#2411)719- Properly handle the case where a server issuing digest720 authentication challenges provides both auth and auth-int721 qop-values. (\#2408)722- Fix a socket leak.723 ([shazow/urllib3\#549](https://github.com/shazow/urllib3/pull/549))724- Fix multiple `Set-Cookie` headers properly.725 ([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))726- Disable the built-in hostname verification.727 ([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))728- Fix the behaviour of decoding an exhausted stream.729 ([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))730731**Security**732733- Pulled in an updated `cacert.pem`.734- Drop RC4 from the default cipher list.735 ([shazow/urllib3\#551](https://github.com/shazow/urllib3/pull/551))7367372.5.1 (2014-12-23)738------------------739740**Behavioural Changes**741742- Only catch HTTPErrors in raise\_for\_status (\#2382)743744**Bugfixes**745746- Handle LocationParseError from urllib3 (\#2344)747- Handle file-like object filenames that are not strings (\#2379)748- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated749 (\#2389)7507512.5.0 (2014-12-01)752------------------753754**Improvements**755756- Allow usage of urllib3's Retry object with HTTPAdapters (\#2216)757- The `iter_lines` method on a response now accepts a delimiter with758 which to split the content (\#2295)759760**Behavioural Changes**761762- Add deprecation warnings to functions in requests.utils that will be763 removed in 3.0 (\#2309)764- Sessions used by the functional API are always closed (\#2326)765- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9)766 (\#2323)767768**Bugfixes**769770- Only parse the URL once (\#2353)771- Allow Content-Length header to always be overridden (\#2332)772- Properly handle files in HTTPDigestAuth (\#2333)773- Cap redirect\_cache size to prevent memory abuse (\#2299)774- Fix HTTPDigestAuth handling of redirects after authenticating775 successfully (\#2253)776- Fix crash with custom method parameter to Session.request (\#2317)777- Fix how Link headers are parsed using the regular expression library778 (\#2271)779780**Documentation**781782- Add more references for interlinking (\#2348)783- Update CSS for theme (\#2290)784- Update width of buttons and sidebar (\#2289)785- Replace references of Gittip with Gratipay (\#2282)786- Add link to changelog in sidebar (\#2273)7877882.4.3 (2014-10-06)789------------------790791**Bugfixes**792793- Unicode URL improvements for Python 2.794- Re-order JSON param for backwards compat.795- Automatically defrag authentication schemes from host/pass URIs.796 ([\#2249](https://github.com/psf/requests/issues/2249))7977982.4.2 (2014-10-05)799------------------800801**Improvements**802803- FINALLY! Add json parameter for uploads!804 ([\#2258](https://github.com/psf/requests/pull/2258))805- Support for bytestring URLs on Python 3.x806 ([\#2238](https://github.com/psf/requests/pull/2238))807808**Bugfixes**809810- Avoid getting stuck in a loop811 ([\#2244](https://github.com/psf/requests/pull/2244))812- Multiple calls to iter\* fail with unhelpful error.813 ([\#2240](https://github.com/psf/requests/issues/2240),814 [\#2241](https://github.com/psf/requests/issues/2241))815816**Documentation**817818- Correct redirection introduction819 ([\#2245](https://github.com/psf/requests/pull/2245/))820- Added example of how to send multiple files in one request.821 ([\#2227](https://github.com/psf/requests/pull/2227/))822- Clarify how to pass a custom set of CAs823 ([\#2248](https://github.com/psf/requests/pull/2248/))8248252.4.1 (2014-09-09)826------------------827828- Now has a "security" package extras set,829 `$ pip install requests[security]`830- Requests will now use Certifi if it is available.831- Capture and re-raise urllib3 ProtocolError832- Bugfix for responses that attempt to redirect to themselves forever833 (wtf?).8348352.4.0 (2014-08-29)836------------------837838**Behavioral Changes**839840- `Connection: keep-alive` header is now sent automatically.841842**Improvements**843844- Support for connect timeouts! Timeout now accepts a tuple (connect,845 read) which is used to set individual connect and read timeouts.846- Allow copying of PreparedRequests without headers/cookies.847- Updated bundled urllib3 version.848- Refactored settings loading from environment -- new849 Session.merge\_environment\_settings.850- Handle socket errors in iter\_content.8518522.3.0 (2014-05-16)853------------------854855**API Changes**856857- New `Response` property `is_redirect`, which is true when the858 library could have processed this response as a redirection (whether859 or not it actually did).860- The `timeout` parameter now affects requests with both `stream=True`861 and `stream=False` equally.862- The change in v2.0.0 to mandate explicit proxy schemes has been863 reverted. Proxy schemes now default to `http://`.864- The `CaseInsensitiveDict` used for HTTP headers now behaves like a865 normal dictionary when references as string or viewed in the866 interpreter.867868**Bugfixes**869870- No longer expose Authorization or Proxy-Authorization headers on871 redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively.872- Authorization is re-evaluated each redirect.873- On redirect, pass url as native strings.874- Fall-back to autodetected encoding for JSON when Unicode detection875 fails.876- Headers set to `None` on the `Session` are now correctly not sent.877- Correctly honor `decode_unicode` even if it wasn't used earlier in878 the same response.879- Stop advertising `compress` as a supported Content-Encoding.880- The `Response.history` parameter is now always a list.881- Many, many `urllib3` bugfixes.8828832.2.1 (2014-01-23)884------------------885886**Bugfixes**887888- Fixes incorrect parsing of proxy credentials that contain a literal889 or encoded '\#' character.890- Assorted urllib3 fixes.8918922.2.0 (2014-01-09)893------------------894895**API Changes**896897- New exception: `ContentDecodingError`. Raised instead of `urllib3`898 `DecodeError` exceptions.899900**Bugfixes**901902- Avoid many many exceptions from the buggy implementation of903 `proxy_bypass` on OS X in Python 2.6.904- Avoid crashing when attempting to get authentication credentials905 from \~/.netrc when running as a user without a home directory.906- Use the correct pool size for pools of connections to proxies.907- Fix iteration of `CookieJar` objects.908- Ensure that cookies are persisted over redirect.909- Switch back to using chardet, since it has merged with charade.9109112.1.0 (2013-12-05)912------------------913914- Updated CA Bundle, of course.915- Cookies set on individual Requests through a `Session` (e.g. via916 `Session.get()`) are no longer persisted to the `Session`.917- Clean up connections when we hit problems during chunked upload,918 rather than leaking them.919- Return connections to the pool when a chunked upload is successful,920 rather than leaking it.921- Match the HTTPbis recommendation for HTTP 301 redirects.922- Prevent hanging when using streaming uploads and Digest Auth when a923 401 is received.924- Values of headers set by Requests are now always the native string925 type.926- Fix previously broken SNI support.927- Fix accessing HTTP proxies using proxy authentication.928- Unencode HTTP Basic usernames and passwords extracted from URLs.929- Support for IP address ranges for no\_proxy environment variable930- Parse headers correctly when users override the default `Host:`931 header.932- Avoid munging the URL in case of case-sensitive servers.933- Looser URL handling for non-HTTP/HTTPS urls.934- Accept unicode methods in Python 2.6 and 2.7.935- More resilient cookie handling.936- Make `Response` objects pickleable.937- Actually added MD5-sess to Digest Auth instead of pretending to like938 last time.939- Updated internal urllib3.940- Fixed @Lukasa's lack of taste.9419422.0.1 (2013-10-24)943------------------944945- Updated included CA Bundle with new mistrusts and automated process946 for the future947- Added MD5-sess to Digest Auth948- Accept per-file headers in multipart file POST messages.949- Fixed: Don't send the full URL on CONNECT messages.950- Fixed: Correctly lowercase a redirect scheme.951- Fixed: Cookies not persisted when set via functional API.952- Fixed: Translate urllib3 ProxyError into a requests ProxyError953 derived from ConnectionError.954- Updated internal urllib3 and chardet.9559562.0.0 (2013-09-24)957------------------958959**API Changes:**960961- Keys in the Headers dictionary are now native strings on all Python962 versions, i.e. bytestrings on Python 2, unicode on Python 3.963- Proxy URLs now *must* have an explicit scheme. A `MissingSchema`964 exception will be raised if they don't.965- Timeouts now apply to read time if `Stream=False`.966- `RequestException` is now a subclass of `IOError`, not967 `RuntimeError`.968- Added new method to `PreparedRequest` objects:969 `PreparedRequest.copy()`.970- Added new method to `Session` objects: `Session.update_request()`.971 This method updates a `Request` object with the data (e.g. cookies)972 stored on the `Session`.973- Added new method to `Session` objects: `Session.prepare_request()`.974 This method updates and prepares a `Request` object, and returns the975 corresponding `PreparedRequest` object.976- Added new method to `HTTPAdapter` objects:977 `HTTPAdapter.proxy_headers()`. This should not be called directly,978 but improves the subclass interface.979- `httplib.IncompleteRead` exceptions caused by incorrect chunked980 encoding will now raise a Requests `ChunkedEncodingError` instead.981- Invalid percent-escape sequences now cause a Requests `InvalidURL`982 exception to be raised.983- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses984 `"already_reported"`.985- HTTP 226 reason added (`"im_used"`).986987**Bugfixes:**988989- Vastly improved proxy support, including the CONNECT verb. Special990 thanks to the many contributors who worked towards this improvement.991- Cookies are now properly managed when 401 authentication responses992 are received.993- Chunked encoding fixes.994- Support for mixed case schemes.995- Better handling of streaming downloads.996- Retrieve environment proxies from more locations.997- Minor cookies fixes.998- Improved redirect behaviour.999- Improved streaming behaviour, particularly for compressed data.1000- Miscellaneous small Python 3 text encoding bugs.1001- `.netrc` no longer overrides explicit auth.1002- Cookies set by hooks are now correctly persisted on Sessions.1003- Fix problem with cookies that specify port numbers in their host1004 field.1005- `BytesIO` can be used to perform streaming uploads.1006- More generous parsing of the `no_proxy` environment variable.1007- Non-string objects can be passed in data values alongside files.100810091.2.3 (2013-05-25)1010------------------10111012- Simple packaging fix101310141.2.2 (2013-05-23)1015------------------10161017- Simple packaging fix101810191.2.1 (2013-05-20)1020------------------10211022- 301 and 302 redirects now change the verb to GET for all verbs, not1023 just POST, improving browser compatibility.1024- Python 3.3.2 compatibility1025- Always percent-encode location headers1026- Fix connection adapter matching to be most-specific first1027- new argument to the default connection adapter for passing a block1028 argument1029- prevent a KeyError when there's no link headers103010311.2.0 (2013-03-31)1032------------------10331034- Fixed cookies on sessions and on requests1035- Significantly change how hooks are dispatched - hooks now receive1036 all the arguments specified by the user when making a request so1037 hooks can make a secondary request with the same parameters. This is1038 especially necessary for authentication handler authors1039- certifi support was removed1040- Fixed bug where using OAuth 1 with body `signature_type` sent no1041 data1042- Major proxy work thanks to @Lukasa including parsing of proxy1043 authentication from the proxy url1044- Fix DigestAuth handling too many 401s1045- Update vendored urllib3 to include SSL bug fixes1046- Allow keyword arguments to be passed to `json.loads()` via the1047 `Response.json()` method1048- Don't send `Content-Length` header by default on `GET` or `HEAD`1049 requests1050- Add `elapsed` attribute to `Response` objects to time how long a1051 request took.1052- Fix `RequestsCookieJar`1053- Sessions and Adapters are now picklable, i.e., can be used with the1054 multiprocessing library1055- Update charade to version 1.0.310561057The change in how hooks are dispatched will likely cause a great deal of1058issues.105910601.1.0 (2013-01-10)1061------------------10621063- CHUNKED REQUESTS1064- Support for iterable response bodies1065- Assume servers persist redirect params1066- Allow explicit content types to be specified for file data1067- Make merge\_kwargs case-insensitive when looking up keys106810691.0.3 (2012-12-18)1070------------------10711072- Fix file upload encoding bug1073- Fix cookie behavior107410751.0.2 (2012-12-17)1076------------------10771078- Proxy fix for HTTPAdapter.107910801.0.1 (2012-12-17)1081------------------10821083- Cert verification exception bug.1084- Proxy fix for HTTPAdapter.108510861.0.0 (2012-12-17)1087------------------10881089- Massive Refactor and Simplification1090- Switch to Apache 2.0 license1091- Swappable Connection Adapters1092- Mountable Connection Adapters1093- Mutable ProcessedRequest chain1094- /s/prefetch/stream1095- Removal of all configuration1096- Standard library logging1097- Make Response.json() callable, not property.1098- Usage of new charade project, which provides python 2 and 31099 simultaneous chardet.1100- Removal of all hooks except 'response'1101- Removal of all authentication helpers (OAuth, Kerberos)11021103This is not a backwards compatible change.110411050.14.2 (2012-10-27)1106-------------------11071108- Improved mime-compatible JSON handling1109- Proxy fixes1110- Path hack fixes1111- Case-Insensitive Content-Encoding headers1112- Support for CJK parameters in form posts111311140.14.1 (2012-10-01)1115-------------------11161117- Python 3.3 Compatibility1118- Simply default accept-encoding1119- Bugfixes112011210.14.0 (2012-09-02)1122-------------------11231124- No more iter\_content errors if already downloaded.112511260.13.9 (2012-08-25)1127-------------------11281129- Fix for OAuth + POSTs1130- Remove exception eating from dispatch\_hook1131- General bugfixes113211330.13.8 (2012-08-21)1134-------------------11351136- Incredible Link header support :)113711380.13.7 (2012-08-19)1139-------------------11401141- Support for (key, value) lists everywhere.1142- Digest Authentication improvements.1143- Ensure proxy exclusions work properly.1144- Clearer UnicodeError exceptions.1145- Automatic casting of URLs to strings (fURL and such)1146- Bugfixes.114711480.13.6 (2012-08-06)1149-------------------11501151- Long awaited fix for hanging connections!115211530.13.5 (2012-07-27)1154-------------------11551156- Packaging fix115711580.13.4 (2012-07-27)1159-------------------11601161- GSSAPI/Kerberos authentication!1162- App Engine 2.7 Fixes!1163- Fix leaking connections (from urllib3 update)1164- OAuthlib path hack fix1165- OAuthlib URL parameters fix.116611670.13.3 (2012-07-12)1168-------------------11691170- Use simplejson if available.1171- Do not hide SSLErrors behind Timeouts.1172- Fixed param handling with urls containing fragments.1173- Significantly improved information in User Agent.1174- client certificates are ignored when verify=False117511760.13.2 (2012-06-28)1177-------------------11781179- Zero dependencies (once again)!1180- New: Response.reason1181- Sign querystring parameters in OAuth 1.01182- Client certificates no longer ignored when verify=False1183- Add openSUSE certificate support118411850.13.1 (2012-06-07)1186-------------------11871188- Allow passing a file or file-like object as data.1189- Allow hooks to return responses that indicate errors.1190- Fix Response.text and Response.json for body-less responses.119111920.13.0 (2012-05-29)1193-------------------11941195- Removal of Requests.async in favor of1196 [grequests](https://github.com/kennethreitz/grequests)1197- Allow disabling of cookie persistence.1198- New implementation of safe\_mode1199- cookies.get now supports default argument1200- Session cookies not saved when Session.request is called with1201 return\_response=False1202- Env: no\_proxy support.1203- RequestsCookieJar improvements.1204- Various bug fixes.120512060.12.1 (2012-05-08)1207-------------------12081209- New `Response.json` property.1210- Ability to add string file uploads.1211- Fix out-of-range issue with iter\_lines.1212- Fix iter\_content default size.1213- Fix POST redirects containing files.121412150.12.0 (2012-05-02)1216-------------------12171218- EXPERIMENTAL OAUTH SUPPORT!1219- Proper CookieJar-backed cookies interface with awesome dict-like1220 interface.1221- Speed fix for non-iterated content chunks.1222- Move `pre_request` to a more usable place.1223- New `pre_send` hook.1224- Lazily encode data, params, files.1225- Load system Certificate Bundle if `certify` isn't available.1226- Cleanups, fixes.122712280.11.2 (2012-04-22)1229-------------------12301231- Attempt to use the OS's certificate bundle if `certifi` isn't1232 available.1233- Infinite digest auth redirect fix.1234- Multi-part file upload improvements.1235- Fix decoding of invalid %encodings in URLs.1236- If there is no content in a response don't throw an error the second1237 time that content is attempted to be read.1238- Upload data on redirects.123912400.11.1 (2012-03-30)1241-------------------12421243- POST redirects now break RFC to do what browsers do: Follow up with1244 a GET.1245- New `strict_mode` configuration to disable new redirect behavior.124612470.11.0 (2012-03-14)1248-------------------12491250- Private SSL Certificate support1251- Remove select.poll from Gevent monkeypatching1252- Remove redundant generator for chunked transfer encoding1253- Fix: Response.ok raises Timeout Exception in safe\_mode125412550.10.8 (2012-03-09)1256-------------------12571258- Generate chunked ValueError fix1259- Proxy configuration by environment variables1260- Simplification of iter\_lines.1261- New trust\_env configuration for disabling system/environment hints.1262- Suppress cookie errors.126312640.10.7 (2012-03-07)1265-------------------12661267- encode\_uri = False126812690.10.6 (2012-02-25)1270-------------------12711272- Allow '=' in cookies.127312740.10.5 (2012-02-25)1275-------------------12761277- Response body with 0 content-length fix.1278- New async.imap.1279- Don't fail on netrc.128012810.10.4 (2012-02-20)1282-------------------12831284- Honor netrc.128512860.10.3 (2012-02-20)1287-------------------12881289- HEAD requests don't follow redirects anymore.1290- raise\_for\_status() doesn't raise for 3xx anymore.1291- Make Session objects picklable.1292- ValueError for invalid schema URLs.129312940.10.2 (2012-01-15)1295-------------------12961297- Vastly improved URL quoting.1298- Additional allowed cookie key values.1299- Attempted fix for "Too many open files" Error1300- Replace unicode errors on first pass, no need for second pass.1301- Append '/' to bare-domain urls before query insertion.1302- Exceptions now inherit from RuntimeError.1303- Binary uploads + auth fix.1304- Bugfixes.130513060.10.1 (2012-01-23)1307-------------------13081309- PYTHON 3 SUPPORT!1310- Dropped 2.5 Support. (*Backwards Incompatible*)131113120.10.0 (2012-01-21)1313-------------------13141315- `Response.content` is now bytes-only. (*Backwards Incompatible*)1316- New `Response.text` is unicode-only.1317- If no `Response.encoding` is specified and `chardet` is available,1318 `Response.text` will guess an encoding.1319- Default to ISO-8859-1 (Western) encoding for "text" subtypes.1320- Removal of decode\_unicode. (*Backwards Incompatible*)1321- New multiple-hooks system.1322- New `Response.register_hook` for registering hooks within the1323 pipeline.1324- `Response.url` is now Unicode.132513260.9.3 (2012-01-18)1327------------------13281329- SSL verify=False bugfix (apparent on windows machines).133013310.9.2 (2012-01-18)1332------------------13331334- Asynchronous async.send method.1335- Support for proper chunk streams with boundaries.1336- session argument for Session classes.1337- Print entire hook tracebacks, not just exception instance.1338- Fix response.iter\_lines from pending next line.1339- Fix but in HTTP-digest auth w/ URI having query strings.1340- Fix in Event Hooks section.1341- Urllib3 update.134213430.9.1 (2012-01-06)1344------------------13451346- danger\_mode for automatic Response.raise\_for\_status()1347- Response.iter\_lines refactor134813490.9.0 (2011-12-28)1350------------------13511352- verify ssl is default.135313540.8.9 (2011-12-28)1355------------------13561357- Packaging fix.135813590.8.8 (2011-12-28)1360------------------13611362- SSL CERT VERIFICATION!1363- Release of Cerifi: Mozilla's cert list.1364- New 'verify' argument for SSL requests.1365- Urllib3 update.136613670.8.7 (2011-12-24)1368------------------13691370- iter\_lines last-line truncation fix1371- Force safe\_mode for async requests1372- Handle safe\_mode exceptions more consistently1373- Fix iteration on null responses in safe\_mode137413750.8.6 (2011-12-18)1376------------------13771378- Socket timeout fixes.1379- Proxy Authorization support.138013810.8.5 (2011-12-14)1382------------------13831384- Response.iter\_lines!138513860.8.4 (2011-12-11)1387------------------13881389- Prefetch bugfix.1390- Added license to installed version.139113920.8.3 (2011-11-27)1393------------------13941395- Converted auth system to use simpler callable objects.1396- New session parameter to API methods.1397- Display full URL while logging.139813990.8.2 (2011-11-19)1400------------------14011402- New Unicode decoding system, based on over-ridable1403 Response.encoding.1404- Proper URL slash-quote handling.1405- Cookies with `[`, `]`, and `_` allowed.140614070.8.1 (2011-11-15)1408------------------14091410- URL Request path fix1411- Proxy fix.1412- Timeouts fix.141314140.8.0 (2011-11-13)1415------------------14161417- Keep-alive support!1418- Complete removal of Urllib21419- Complete removal of Poster1420- Complete removal of CookieJars1421- New ConnectionError raising1422- Safe\_mode for error catching1423- prefetch parameter for request methods1424- OPTION method1425- Async pool size throttling1426- File uploads send real names1427- Vendored in urllib3142814290.7.6 (2011-11-07)1430------------------14311432- Digest authentication bugfix (attach query data to path)143314340.7.5 (2011-11-04)1435------------------14361437- Response.content = None if there was an invalid response.1438- Redirection auth handling.143914400.7.4 (2011-10-26)1441------------------14421443- Session Hooks fix.144414450.7.3 (2011-10-23)1446------------------14471448- Digest Auth fix.144914500.7.2 (2011-10-23)1451------------------14521453- PATCH Fix.145414550.7.1 (2011-10-23)1456------------------14571458- Move away from urllib2 authentication handling.1459- Fully Remove AuthManager, AuthObject, &c.1460- New tuple-based auth system with handler callbacks.146114620.7.0 (2011-10-22)1463------------------14641465- Sessions are now the primary interface.1466- Deprecated InvalidMethodException.1467- PATCH fix.1468- New config system (no more global settings).146914700.6.6 (2011-10-19)1471------------------14721473- Session parameter bugfix (params merging).147414750.6.5 (2011-10-18)1476------------------14771478- Offline (fast) test suite.1479- Session dictionary argument merging.148014810.6.4 (2011-10-13)1482------------------14831484- Automatic decoding of unicode, based on HTTP Headers.1485- New `decode_unicode` setting.1486- Removal of `r.read/close` methods.1487- New `r.faw` interface for advanced response usage.\*1488- Automatic expansion of parameterized headers.148914900.6.3 (2011-10-13)1491------------------14921493- Beautiful `requests.async` module, for making async requests w/1494 gevent.149514960.6.2 (2011-10-09)1497------------------14981499- GET/HEAD obeys allow\_redirects=False.150015010.6.1 (2011-08-20)1502------------------15031504- Enhanced status codes experience `\o/`1505- Set a maximum number of redirects (`settings.max_redirects`)1506- Full Unicode URL support1507- Support for protocol-less redirects.1508- Allow for arbitrary request types.1509- Bugfixes151015110.6.0 (2011-08-17)1512------------------15131514- New callback hook system1515- New persistent sessions object and context manager1516- Transparent Dict-cookie handling1517- Status code reference object1518- Removed Response.cached1519- Added Response.request1520- All args are kwargs1521- Relative redirect support1522- HTTPError handling improvements1523- Improved https testing1524- Bugfixes152515260.5.1 (2011-07-23)1527------------------15281529- International Domain Name Support!1530- Access headers without fetching entire body (`read()`)1531- Use lists as dicts for parameters1532- Add Forced Basic Authentication1533- Forced Basic is default authentication type1534- `python-requests.org` default User-Agent header1535- CaseInsensitiveDict lower-case caching1536- Response.history bugfix153715380.5.0 (2011-06-21)1539------------------15401541- PATCH Support1542- Support for Proxies1543- HTTPBin Test Suite1544- Redirect Fixes1545- settings.verbose stream writing1546- Querystrings for all methods1547- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as1548 explicitly raised1549 `r.requests.get('hwe://blah'); r.raise_for_status()`155015510.4.1 (2011-05-22)1552------------------15531554- Improved Redirection Handling1555- New 'allow\_redirects' param for following non-GET/HEAD Redirects1556- Settings module refactoring155715580.4.0 (2011-05-15)1559------------------15601561- Response.history: list of redirected responses1562- Case-Insensitive Header Dictionaries!1563- Unicode URLs156415650.3.4 (2011-05-14)1566------------------15671568- Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)1569- Internal Refactor1570- Bytes data upload Bugfix157115720.3.3 (2011-05-12)1573------------------15741575- Request timeouts1576- Unicode url-encoded data1577- Settings context manager and module157815790.3.2 (2011-04-15)1580------------------15811582- Automatic Decompression of GZip Encoded Content1583- AutoAuth Support for Tupled HTTP Auth158415850.3.1 (2011-04-01)1586------------------15871588- Cookie Changes1589- Response.read()1590- Poster fix159115920.3.0 (2011-02-25)1593------------------15941595- Automatic Authentication API Change1596- Smarter Query URL Parameterization1597- Allow file uploads and POST data together1598- 15991600 New Authentication Manager System16011602 : - Simpler Basic HTTP System1603 - Supports all build-in urllib2 Auths1604 - Allows for custom Auth Handlers160516060.2.4 (2011-02-19)1607------------------16081609- Python 2.5 Support1610- PyPy-c v1.4 Support1611- Auto-Authentication tests1612- Improved Request object constructor161316140.2.3 (2011-02-15)1615------------------16161617- 16181619 New HTTPHandling Methods16201621 : - Response.\_\_nonzero\_\_ (false if bad HTTP Status)1622 - Response.ok (True if expected HTTP Status)1623 - Response.error (Logged HTTPError if bad HTTP Status)1624 - Response.raise\_for\_status() (Raises stored HTTPError)162516260.2.2 (2011-02-14)1627------------------16281629- Still handles request in the event of an HTTPError. (Issue \#2)1630- Eventlet and Gevent Monkeypatch support.1631- Cookie Support (Issue \#1)163216330.2.1 (2011-02-14)1634------------------16351636- Added file attribute to POST and PUT requests for multipart-encode1637 file uploads.1638- Added Request.url attribute for context and redirects163916400.2.0 (2011-02-14)1641------------------16421643- Birth!164416450.0.1 (2011-02-13)1646------------------16471648- Frustration1649- Conception1650