HISTORY.md
This file
Path
HISTORY.md
1,631 lines · 47.5 KiB · Markdown
Last changed by
v2.20.1Nate Prewittbefore adoption6cfbe1a
History of this fileTake it
historyKenneth Reitzbefore adoption5251882
lines 1–6why, one step back1Release History2===============34dev5---6Merge pull request #4765 from requests/encapsulate_urllib3_excNate Prewittbefore adoptiona6cd380
lines 7–8why, one step back7**Bugfixes**8Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
lines 9–10why, one step back9- \[Short description of non-trivial change.\]10v2.20.1Nate Prewittbefore adoption6cfbe1a
lines 11–18why, one step back112.20.1 (2018-11-08)12-------------------1314**Bugfixes**1516- Fixed bug with unintended Authorization header stripping for17 redirects using default ports (http/80, https/443).18Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
lines 19–23why, one step back192.20.0 (2018-10-18)20-------------------2122**Bugfixes**23Merge pull request #4765 from requests/encapsulate_urllib3_excNate Prewittbefore adoptiona6cd380
lines 24–27why, one step back24- Content-Type header parsing is now case-insensitive (e.g.25 charset=utf8 v Charset=utf8).26- Fixed exception leak where certain redirect urls would raise27 uncaught urllib3 exceptions.Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
lines 28–31why, one step back28- Requests removes Authorization header from requests redirected29 from https to http on the same hostname. (CVE-2018-18074)30- `should_bypass_proxies` now handles URIs without hostnames (e.g.31 files).historyKenneth Reitzbefore adoption5251882
line 32why, one step back32Merge pull request #4835 from requests/2.20.0Nate Prewittbefore adoption75bdc99
lines 33–39why, one step back33**Dependencies**3435- Requests now supports urllib3 v1.24.3637**Deprecations**3839- Requests has officially stopped support for Python 2.6.historyKenneth Reitzbefore adoption5251882
lines 40–677why, one step back40412.19.1 (2018-06-14)42-------------------4344**Bugfixes**4546- Fixed issue where status\_codes.py's `init` function failed trying47 to append to a `__doc__` value of `None`.48492.19.0 (2018-06-12)50-------------------5152**Improvements**5354- Warn user about possible slowdown when using cryptography version55 < 1.3.456- Check for invalid host in proxy URL, before forwarding request to57 adapter.58- Fragments are now properly maintained across redirects. (RFC723159 7.1.2)60- Removed use of cgi module to expedite library load time.61- Added support for SHA-256 and SHA-512 digest auth algorithms.62- Minor performance improvement to `Request.content`.63- Migrate to using collections.abc for 3.7 compatibility.6465**Bugfixes**6667- Parsing empty `Link` headers with `parse_header_links()` no longer68 return one bogus entry.69- Fixed issue where loading the default certificate bundle from a zip70 archive would raise an `IOError`.71- Fixed issue with unexpected `ImportError` on windows system which do72 not support `winreg` module.73- DNS resolution in proxy bypass no longer includes the username and74 password in the request. This also fixes the issue of DNS queries75 failing on macOS.76- Properly normalize adapter prefixes for url comparison.77- Passing `None` as a file pointer to the `files` param no longer78 raises an exception.79- Calling `copy` on a `RequestsCookieJar` will now preserve the cookie80 policy correctly.8182**Dependencies**8384- We now support idna v2.7.85- We now support urllib3 v1.23.86872.18.4 (2017-08-15)88-------------------8990**Improvements**9192- Error messages for invalid headers now include the header name for93 easier debugging9495**Dependencies**9697- We now support idna v2.6.98992.18.3 (2017-08-02)100-------------------101102**Improvements**103104- Running `$ python -m requests.help` now includes the installed105 version of idna.106107**Bugfixes**108109- Fixed issue where Requests would raise `ConnectionError` instead of110 `SSLError` when encountering SSL problems when using urllib3 v1.22.1111122.18.2 (2017-07-25)113-------------------114115**Bugfixes**116117- `requests.help` no longer fails on Python 2.6 due to the absence of118 `ssl.OPENSSL_VERSION_NUMBER`.119120**Dependencies**121122- We now support urllib3 v1.22.1231242.18.1 (2017-06-14)125-------------------126127**Bugfixes**128129- Fix an error in the packaging whereby the `*.whl` contained130 incorrect data that regressed the fix in v2.17.3.1311322.18.0 (2017-06-14)133-------------------134135**Improvements**136137- `Response` is now a context manager, so can be used directly in a138 `with` statement without first having to be wrapped by139 `contextlib.closing()`.140141**Bugfixes**142143- Resolve installation failure if multiprocessing is not available144- Resolve tests crash if multiprocessing is not able to determine the145 number of CPU cores146- Resolve error swallowing in utils set\_environ generator1471482.17.3 (2017-05-29)149-------------------150151**Improvements**152153- Improved `packages` namespace identity support, for monkeypatching154 libraries.1551562.17.2 (2017-05-29)157-------------------158159**Improvements**160161- Improved `packages` namespace identity support, for monkeypatching162 libraries.1631642.17.1 (2017-05-29)165-------------------166167**Improvements**168169- Improved `packages` namespace identity support, for monkeypatching170 libraries.1711722.17.0 (2017-05-29)173-------------------174175**Improvements**176177- Removal of the 301 redirect cache. This improves thread-safety.1781792.16.5 (2017-05-28)180-------------------181182- Improvements to `$ python -m requests.help`.1831842.16.4 (2017-05-27)185-------------------186187- Introduction of the `$ python -m requests.help` command, for188 debugging with maintainers!1891902.16.3 (2017-05-27)191-------------------192193- Further restored the `requests.packages` namespace for compatibility194 reasons.1951962.16.2 (2017-05-27)197-------------------198199- Further restored the `requests.packages` namespace for compatibility200 reasons.201202No code modification (noted below) should be necessary any longer.2032042.16.1 (2017-05-27)205-------------------206207- Restored the `requests.packages` namespace for compatibility208 reasons.209- Bugfix for `urllib3` version parsing.210211**Note**: code that was written to import against the212`requests.packages` namespace previously will have to import code that213rests at this module-level now.214215For example:216217 from requests.packages.urllib3.poolmanager import PoolManager218219Will need to be re-written to be:220221 from requests.packages import urllib3222 urllib3.poolmanager.PoolManager223224Or, even better:225226 from urllib3.poolmanager import PoolManager2272282.16.0 (2017-05-26)229-------------------230231- Unvendor ALL the things!2322332.15.1 (2017-05-26)234-------------------235236- Everyone makes mistakes.2372382.15.0 (2017-05-26)239-------------------240241**Improvements**242243- Introduction of the `Response.next` property, for getting the next244 `PreparedResponse` from a redirect chain (when245 `allow_redirects=False`).246- Internal refactoring of `__version__` module.247248**Bugfixes**249250- Restored once-optional parameter for251 `requests.utils.get_environ_proxies()`.2522532.14.2 (2017-05-10)254-------------------255256**Bugfixes**257258- Changed a less-than to an equal-to and an or in the dependency259 markers to widen compatibility with older setuptools releases.2602612.14.1 (2017-05-09)262-------------------263264**Bugfixes**265266- Changed the dependency markers to widen compatibility with older pip267 releases.2682692.14.0 (2017-05-09)270-------------------271272**Improvements**273274- It is now possible to pass `no_proxy` as a key to the `proxies`275 dictionary to provide handling similar to the `NO_PROXY` environment276 variable.277- When users provide invalid paths to certificate bundle files or278 directories Requests now raises `IOError`, rather than failing at279 the time of the HTTPS request with a fairly inscrutable certificate280 validation error.281- The behavior of `SessionRedirectMixin` was slightly altered.282 `resolve_redirects` will now detect a redirect by calling283 `get_redirect_target(response)` instead of directly querying284 `Response.is_redirect` and `Response.headers['location']`. Advanced285 users will be able to process malformed redirects more easily.286- Changed the internal calculation of elapsed request time to have287 higher resolution on Windows.288- Added `win_inet_pton` as conditional dependency for the `[socks]`289 extra on Windows with Python 2.7.290- Changed the proxy bypass implementation on Windows: the proxy bypass291 check doesn't use forward and reverse DNS requests anymore292- URLs with schemes that begin with `http` but are not `http` or293 `https` no longer have their host parts forced to lowercase.294295**Bugfixes**296297- Much improved handling of non-ASCII `Location` header values in298 redirects. Fewer `UnicodeDecodeErrors` are encountered on Python 2,299 and Python 3 now correctly understands that Latin-1 is unlikely to300 be the correct encoding.301- If an attempt to `seek` file to find out its length fails, we now302 appropriately handle that by aborting our content-length303 calculations.304- Restricted `HTTPDigestAuth` to only respond to auth challenges made305 on 4XX responses, rather than to all auth challenges.306- Fixed some code that was firing `DeprecationWarning` on Python 3.6.307- The dismayed person emoticon (`/o\\`) no longer has a big head. I'm308 sure this is what you were all worrying about most.309310**Miscellaneous**311312- Updated bundled urllib3 to v1.21.1.313- Updated bundled chardet to v3.0.2.314- Updated bundled idna to v2.5.315- Updated bundled certifi to 2017.4.17.3163172.13.0 (2017-01-24)318-------------------319320**Features**321322- Only load the `idna` library when we've determined we need it. This323 will save some memory for users.324325**Miscellaneous**326327- Updated bundled urllib3 to 1.20.328- Updated bundled idna to 2.2.3293302.12.5 (2017-01-18)331-------------------332333**Bugfixes**334335- Fixed an issue with JSON encoding detection, specifically detecting336 big-endian UTF-32 with BOM.3373382.12.4 (2016-12-14)339-------------------340341**Bugfixes**342343- Fixed regression from 2.12.2 where non-string types were rejected in344 the basic auth parameters. While support for this behaviour has been345 readded, the behaviour is deprecated and will be removed in the346 future.3473482.12.3 (2016-12-01)349-------------------350351**Bugfixes**352353- Fixed regression from v2.12.1 for URLs with schemes that begin with354 "http". These URLs have historically been processed as though they355 were HTTP-schemed URLs, and so have had parameters added. This was356 removed in v2.12.2 in an overzealous attempt to resolve problems357 with IDNA-encoding those URLs. This change was reverted: the other358 fixes for IDNA-encoding have been judged to be sufficient to return359 to the behaviour Requests had before v2.12.0.3603612.12.2 (2016-11-30)362-------------------363364**Bugfixes**365366- Fixed several issues with IDNA-encoding URLs that are technically367 invalid but which are widely accepted. Requests will now attempt to368 IDNA-encode a URL if it can but, if it fails, and the host contains369 only ASCII characters, it will be passed through optimistically.370 This will allow users to opt-in to using IDNA2003 themselves if they371 want to, and will also allow technically invalid but still common372 hostnames.373- Fixed an issue where URLs with leading whitespace would raise374 `InvalidSchema` errors.375- Fixed an issue where some URLs without the HTTP or HTTPS schemes376 would still have HTTP URL preparation applied to them.377- Fixed an issue where Unicode strings could not be used in basic378 auth.379- Fixed an issue encountered by some Requests plugins where380 constructing a Response object would cause `Response.content` to381 raise an `AttributeError`.3823832.12.1 (2016-11-16)384-------------------385386**Bugfixes**387388- Updated setuptools 'security' extra for the new PyOpenSSL backend in389 urllib3.390391**Miscellaneous**392393- Updated bundled urllib3 to 1.19.1.3943952.12.0 (2016-11-15)396-------------------397398**Improvements**399400- Updated support for internationalized domain names from IDNA2003 to401 IDNA2008. This updated support is required for several forms of IDNs402 and is mandatory for .de domains.403- Much improved heuristics for guessing content lengths: Requests will404 no longer read an entire `StringIO` into memory.405- Much improved logic for recalculating `Content-Length` headers for406 `PreparedRequest` objects.407- Improved tolerance for file-like objects that have no `tell` method408 but do have a `seek` method.409- Anything that is a subclass of `Mapping` is now treated like a410 dictionary by the `data=` keyword argument.411- Requests now tolerates empty passwords in proxy credentials, rather412 than stripping the credentials.413- If a request is made with a file-like object as the body and that414 request is redirected with a 307 or 308 status code, Requests will415 now attempt to rewind the body object so it can be replayed.416417**Bugfixes**418419- When calling `response.close`, the call to `close` will be420 propagated through to non-urllib3 backends.421- Fixed issue where the `ALL_PROXY` environment variable would be422 preferred over scheme-specific variables like `HTTP_PROXY`.423- Fixed issue where non-UTF8 reason phrases got severely mangled by424 falling back to decoding using ISO 8859-1 instead.425- Fixed a bug where Requests would not correctly correlate cookies set426 when using custom Host headers if those Host headers did not use the427 native string type for the platform.428429**Miscellaneous**430431- Updated bundled urllib3 to 1.19.432- Updated bundled certifi certs to 2016.09.26.4334342.11.1 (2016-08-17)435-------------------436437**Bugfixes**438439- Fixed a bug when using `iter_content` with `decode_unicode=True` for440 streamed bodies would raise `AttributeError`. This bug was441 introduced in 2.11.442- Strip Content-Type and Transfer-Encoding headers from the header443 block when following a redirect that transforms the verb from444 POST/PUT to GET.4454462.11.0 (2016-08-08)447-------------------448449**Improvements**450451- Added support for the `ALL_PROXY` environment variable.452- Reject header values that contain leading whitespace or newline453 characters to reduce risk of header smuggling.454455**Bugfixes**456457- Fixed occasional `TypeError` when attempting to decode a JSON458 response that occurred in an error case. Now correctly returns a459 `ValueError`.460- Requests would incorrectly ignore a non-CIDR IP address in the461 `NO_PROXY` environment variables: Requests now treats it as a462 specific IP.463- Fixed a bug when sending JSON data that could cause us to encounter464 obscure OpenSSL errors in certain network conditions (yes, really).465- Added type checks to ensure that `iter_content` only accepts466 integers and `None` for chunk sizes.467- Fixed issue where responses whose body had not been fully consumed468 would have the underlying connection closed but not returned to the469 connection pool, which could cause Requests to hang in situations470 where the `HTTPAdapter` had been configured to use a blocking471 connection pool.472473**Miscellaneous**474475- Updated bundled urllib3 to 1.16.476- Some previous releases accidentally accepted non-strings as477 acceptable header values. This release does not.4784792.10.0 (2016-04-29)480-------------------481482**New Features**483484- SOCKS Proxy Support! (requires PySocks;485 `$ pip install requests[socks]`)486487**Miscellaneous**488489- Updated bundled urllib3 to 1.15.1.4904912.9.2 (2016-04-29)492------------------493494**Improvements**495496- Change built-in CaseInsensitiveDict (used for headers) to use497 OrderedDict as its underlying datastore.498499**Bugfixes**500501- Don't use redirect\_cache if allow\_redirects=False502- When passed objects that throw exceptions from `tell()`, send them503 via chunked transfer encoding instead of failing.504- Raise a ProxyError for proxy related connection issues.5055062.9.1 (2015-12-21)507------------------508509**Bugfixes**510511- Resolve regression introduced in 2.9.0 that made it impossible to512 send binary strings as bodies in Python 3.513- Fixed errors when calculating cookie expiration dates in certain514 locales.515516**Miscellaneous**517518- Updated bundled urllib3 to 1.13.1.5195202.9.0 (2015-12-15)521------------------522523**Minor Improvements** (Backwards compatible)524525- The `verify` keyword argument now supports being passed a path to a526 directory of CA certificates, not just a single-file bundle.527- Warnings are now emitted when sending files opened in text mode.528- Added the 511 Network Authentication Required status code to the529 status code registry.530531**Bugfixes**532533- For file-like objects that are not seeked to the very beginning, we534 now send the content length for the number of bytes we will actually535 read, rather than the total size of the file, allowing partial file536 uploads.537- When uploading file-like objects, if they are empty or have no538 obvious content length we set `Transfer-Encoding: chunked` rather539 than `Content-Length: 0`.540- We correctly receive the response in buffered mode when uploading541 chunked bodies.542- We now handle being passed a query string as a bytestring on Python543 3, by decoding it as UTF-8.544- Sessions are now closed in all cases (exceptional and not) when545 using the functional API rather than leaking and waiting for the546 garbage collector to clean them up.547- Correctly handle digest auth headers with a malformed `qop`548 directive that contains no token, by treating it the same as if no549 `qop` directive was provided at all.550- Minor performance improvements when removing specific cookies by551 name.552553**Miscellaneous**554555- Updated urllib3 to 1.13.5565572.8.1 (2015-10-13)558------------------559560**Bugfixes**561562- Update certificate bundle to match `certifi` 2015.9.6.2's weak563 certificate bundle.564- Fix a bug in 2.8.0 where requests would raise `ConnectTimeout`565 instead of `ConnectionError`566- When using the PreparedRequest flow, requests will now correctly567 respect the `json` parameter. Broken in 2.8.0.568- When using the PreparedRequest flow, requests will now correctly569 handle a Unicode-string method name on Python 2. Broken in 2.8.0.5705712.8.0 (2015-10-05)572------------------573574**Minor Improvements** (Backwards Compatible)575576- Requests now supports per-host proxies. This allows the `proxies`577 dictionary to have entries of the form578 `{'<scheme>://<hostname>': '<proxy>'}`. Host-specific proxies will579 be used in preference to the previously-supported scheme-specific580 ones, but the previous syntax will continue to work.581- `Response.raise_for_status` now prints the URL that failed as part582 of the exception message.583- `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,584 defaulting to `False`. When `True`, errors parsing `.netrc` files585 cause exceptions to be thrown.586- Change to bundled projects import logic to make it easier to587 unbundle requests downstream.588- Changed the default User-Agent string to avoid leaking data on589 Linux: now contains only the requests version.590591**Bugfixes**592593- The `json` parameter to `post()` and friends will now only be used594 if neither `data` nor `files` are present, consistent with the595 documentation.596- We now ignore empty fields in the `NO_PROXY` environment variable.597- Fixed problem where `httplib.BadStatusLine` would get raised if598 combining `stream=True` with `contextlib.closing`.599- Prevented bugs where we would attempt to return the same connection600 back to the connection pool twice when sending a Chunked body.601- Miscellaneous minor internal changes.602- Digest Auth support is now thread safe.603604**Updates**605606- Updated urllib3 to 1.12.6076082.7.0 (2015-05-03)609------------------610611This is the first release that follows our new release process. For612more, see [our613documentation](http://docs.python-requests.org/en/latest/community/release-process/).614615**Bugfixes**616617- Updated urllib3 to 1.10.4, resolving several bugs involving chunked618 transfer encoding and response framing.6196202.6.2 (2015-04-23)621------------------622623**Bugfixes**624625- Fix regression where compressed data that was sent as chunked data626 was not properly decompressed. (\#2561)6276282.6.1 (2015-04-22)629------------------630631**Bugfixes**632633- Remove VendorAlias import machinery introduced in v2.5.2.634- Simplify the PreparedRequest.prepare API: We no longer require the635 user to pass an empty list to the hooks keyword argument. (c.f.636 \#2552)637- Resolve redirects now receives and forwards all of the original638 arguments to the adapter. (\#2503)639- Handle UnicodeDecodeErrors when trying to deal with a unicode URL640 that cannot be encoded in ASCII. (\#2540)641- Populate the parsed path of the URI field when performing Digest642 Authentication. (\#2426)643- Copy a PreparedRequest's CookieJar more reliably when it is not an644 instance of RequestsCookieJar. (\#2527)6456462.6.0 (2015-03-14)647------------------648649**Bugfixes**650651- CVE-2015-2296: Fix handling of cookies on redirect. Previously a652 cookie without a host value set would use the hostname for the653 redirected URL exposing requests users to session fixation attacks654 and potentially cookie stealing. This was disclosed privately by655 Matthew Daley of [BugFuzz](https://bugfuzz.com). This affects all656 versions of requests from v2.1.0 to v2.5.3 (inclusive on both ends).657- Fix error when requests is an `install_requires` dependency and658 `python setup.py test` is run. (\#2462)659- Fix error when urllib3 is unbundled and requests continues to use660 the vendored import location.661- Include fixes to `urllib3`'s header handling.662- Requests' handling of unvendored dependencies is now more663 restrictive.664665**Features and Improvements**666667- Support bytearrays when passed as parameters in the `files`668 argument. (\#2468)669- Avoid data duplication when creating a request with `str`, `bytes`,670 or `bytearray` input to the `files` argument.6716722.5.3 (2015-02-24)673------------------674675**Bugfixes**676677- Revert changes to our vendored certificate bundle. For more contextMerge pull request #4805 from jdufresne/httpsNate Prewittbefore adoptionff0c325
line 678why, one step back678 see (\#2455, \#2456, and <https://bugs.python.org/issue23476>)historyKenneth Reitzbefore adoption5251882
lines 679–1631why, one step back6796802.5.2 (2015-02-23)681------------------682683**Features and Improvements**684685- Add sha256 fingerprint support.686 ([shazow/urllib3\#540](https://github.com/shazow/urllib3/pull/540))687- Improve the performance of headers.688 ([shazow/urllib3\#544](https://github.com/shazow/urllib3/pull/544))689690**Bugfixes**691692- Copy pip's import machinery. When downstream redistributors remove693 requests.packages.urllib3 the import machinery will continue to let694 those same symbols work. Example usage in requests' documentation695 and 3rd-party libraries relying on the vendored copies of urllib3696 will work without having to fallback to the system urllib3.697- Attempt to quote parts of the URL on redirect if unquoting and then698 quoting fails. (\#2356)699- Fix filename type check for multipart form-data uploads. (\#2411)700- Properly handle the case where a server issuing digest701 authentication challenges provides both auth and auth-int702 qop-values. (\#2408)703- Fix a socket leak.704 ([shazow/urllib3\#549](https://github.com/shazow/urllib3/pull/549))705- Fix multiple `Set-Cookie` headers properly.706 ([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))707- Disable the built-in hostname verification.708 ([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))709- Fix the behaviour of decoding an exhausted stream.710 ([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))711712**Security**713714- Pulled in an updated `cacert.pem`.715- Drop RC4 from the default cipher list.716 ([shazow/urllib3\#551](https://github.com/shazow/urllib3/pull/551))7177182.5.1 (2014-12-23)719------------------720721**Behavioural Changes**722723- Only catch HTTPErrors in raise\_for\_status (\#2382)724725**Bugfixes**726727- Handle LocationParseError from urllib3 (\#2344)728- Handle file-like object filenames that are not strings (\#2379)729- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated730 (\#2389)7317322.5.0 (2014-12-01)733------------------734735**Improvements**736737- Allow usage of urllib3's Retry object with HTTPAdapters (\#2216)738- The `iter_lines` method on a response now accepts a delimiter with739 which to split the content (\#2295)740741**Behavioural Changes**742743- Add deprecation warnings to functions in requests.utils that will be744 removed in 3.0 (\#2309)745- Sessions used by the functional API are always closed (\#2326)746- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9)747 (\#2323)748749**Bugfixes**750751- Only parse the URL once (\#2353)752- Allow Content-Length header to always be overridden (\#2332)753- Properly handle files in HTTPDigestAuth (\#2333)754- Cap redirect\_cache size to prevent memory abuse (\#2299)755- Fix HTTPDigestAuth handling of redirects after authenticating756 successfully (\#2253)757- Fix crash with custom method parameter to Session.request (\#2317)758- Fix how Link headers are parsed using the regular expression library759 (\#2271)760761**Documentation**762763- Add more references for interlinking (\#2348)764- Update CSS for theme (\#2290)765- Update width of buttons and sidebar (\#2289)766- Replace references of Gittip with Gratipay (\#2282)767- Add link to changelog in sidebar (\#2273)7687692.4.3 (2014-10-06)770------------------771772**Bugfixes**773774- Unicode URL improvements for Python 2.775- Re-order JSON param for backwards compat.776- Automatically defrag authentication schemes from host/pass URIs.777 ([\#2249](https://github.com/requests/requests/issues/2249))7787792.4.2 (2014-10-05)780------------------781782**Improvements**783784- FINALLY! Add json parameter for uploads!785 ([\#2258](https://github.com/requests/requests/pull/2258))786- Support for bytestring URLs on Python 3.x787 ([\#2238](https://github.com/requests/requests/pull/2238))788789**Bugfixes**790791- Avoid getting stuck in a loop792 ([\#2244](https://github.com/requests/requests/pull/2244))793- Multiple calls to iter\* fail with unhelpful error.794 ([\#2240](https://github.com/requests/requests/issues/2240),795 [\#2241](https://github.com/requests/requests/issues/2241))796797**Documentation**798799- Correct redirection introduction800 ([\#2245](https://github.com/requests/requests/pull/2245/))801- Added example of how to send multiple files in one request.802 ([\#2227](https://github.com/requests/requests/pull/2227/))803- Clarify how to pass a custom set of CAs804 ([\#2248](https://github.com/requests/requests/pull/2248/))8058062.4.1 (2014-09-09)807------------------808809- Now has a "security" package extras set,810 `$ pip install requests[security]`811- Requests will now use Certifi if it is available.812- Capture and re-raise urllib3 ProtocolError813- Bugfix for responses that attempt to redirect to themselves forever814 (wtf?).8158162.4.0 (2014-08-29)817------------------818819**Behavioral Changes**820821- `Connection: keep-alive` header is now sent automatically.822823**Improvements**824825- Support for connect timeouts! Timeout now accepts a tuple (connect,826 read) which is used to set individual connect and read timeouts.827- Allow copying of PreparedRequests without headers/cookies.828- Updated bundled urllib3 version.829- Refactored settings loading from environment -- new830 Session.merge\_environment\_settings.831- Handle socket errors in iter\_content.8328332.3.0 (2014-05-16)834------------------835836**API Changes**837838- New `Response` property `is_redirect`, which is true when the839 library could have processed this response as a redirection (whether840 or not it actually did).841- The `timeout` parameter now affects requests with both `stream=True`842 and `stream=False` equally.843- The change in v2.0.0 to mandate explicit proxy schemes has been844 reverted. Proxy schemes now default to `http://`.845- The `CaseInsensitiveDict` used for HTTP headers now behaves like a846 normal dictionary when references as string or viewed in the847 interpreter.848849**Bugfixes**850851- No longer expose Authorization or Proxy-Authorization headers on852 redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively.853- Authorization is re-evaluated each redirect.854- On redirect, pass url as native strings.855- Fall-back to autodetected encoding for JSON when Unicode detection856 fails.857- Headers set to `None` on the `Session` are now correctly not sent.858- Correctly honor `decode_unicode` even if it wasn't used earlier in859 the same response.860- Stop advertising `compress` as a supported Content-Encoding.861- The `Response.history` parameter is now always a list.862- Many, many `urllib3` bugfixes.8638642.2.1 (2014-01-23)865------------------866867**Bugfixes**868869- Fixes incorrect parsing of proxy credentials that contain a literal870 or encoded '\#' character.871- Assorted urllib3 fixes.8728732.2.0 (2014-01-09)874------------------875876**API Changes**877878- New exception: `ContentDecodingError`. Raised instead of `urllib3`879 `DecodeError` exceptions.880881**Bugfixes**882883- Avoid many many exceptions from the buggy implementation of884 `proxy_bypass` on OS X in Python 2.6.885- Avoid crashing when attempting to get authentication credentials886 from \~/.netrc when running as a user without a home directory.887- Use the correct pool size for pools of connections to proxies.888- Fix iteration of `CookieJar` objects.889- Ensure that cookies are persisted over redirect.890- Switch back to using chardet, since it has merged with charade.8918922.1.0 (2013-12-05)893------------------894895- Updated CA Bundle, of course.896- Cookies set on individual Requests through a `Session` (e.g. via897 `Session.get()`) are no longer persisted to the `Session`.898- Clean up connections when we hit problems during chunked upload,899 rather than leaking them.900- Return connections to the pool when a chunked upload is successful,901 rather than leaking it.902- Match the HTTPbis recommendation for HTTP 301 redirects.903- Prevent hanging when using streaming uploads and Digest Auth when a904 401 is received.905- Values of headers set by Requests are now always the native string906 type.907- Fix previously broken SNI support.908- Fix accessing HTTP proxies using proxy authentication.909- Unencode HTTP Basic usernames and passwords extracted from URLs.910- Support for IP address ranges for no\_proxy environment variable911- Parse headers correctly when users override the default `Host:`912 header.913- Avoid munging the URL in case of case-sensitive servers.914- Looser URL handling for non-HTTP/HTTPS urls.915- Accept unicode methods in Python 2.6 and 2.7.916- More resilient cookie handling.917- Make `Response` objects pickleable.918- Actually added MD5-sess to Digest Auth instead of pretending to like919 last time.920- Updated internal urllib3.921- Fixed @Lukasa's lack of taste.9229232.0.1 (2013-10-24)924------------------925926- Updated included CA Bundle with new mistrusts and automated process927 for the future928- Added MD5-sess to Digest Auth929- Accept per-file headers in multipart file POST messages.930- Fixed: Don't send the full URL on CONNECT messages.931- Fixed: Correctly lowercase a redirect scheme.932- Fixed: Cookies not persisted when set via functional API.933- Fixed: Translate urllib3 ProxyError into a requests ProxyError934 derived from ConnectionError.935- Updated internal urllib3 and chardet.9369372.0.0 (2013-09-24)938------------------939940**API Changes:**941942- Keys in the Headers dictionary are now native strings on all Python943 versions, i.e. bytestrings on Python 2, unicode on Python 3.944- Proxy URLs now *must* have an explicit scheme. A `MissingSchema`945 exception will be raised if they don't.946- Timeouts now apply to read time if `Stream=False`.947- `RequestException` is now a subclass of `IOError`, not948 `RuntimeError`.949- Added new method to `PreparedRequest` objects:950 `PreparedRequest.copy()`.951- Added new method to `Session` objects: `Session.update_request()`.952 This method updates a `Request` object with the data (e.g. cookies)953 stored on the `Session`.954- Added new method to `Session` objects: `Session.prepare_request()`.955 This method updates and prepares a `Request` object, and returns the956 corresponding `PreparedRequest` object.957- Added new method to `HTTPAdapter` objects:958 `HTTPAdapter.proxy_headers()`. This should not be called directly,959 but improves the subclass interface.960- `httplib.IncompleteRead` exceptions caused by incorrect chunked961 encoding will now raise a Requests `ChunkedEncodingError` instead.962- Invalid percent-escape sequences now cause a Requests `InvalidURL`963 exception to be raised.964- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses965 `"already_reported"`.966- HTTP 226 reason added (`"im_used"`).967968**Bugfixes:**969970- Vastly improved proxy support, including the CONNECT verb. Special971 thanks to the many contributors who worked towards this improvement.972- Cookies are now properly managed when 401 authentication responses973 are received.974- Chunked encoding fixes.975- Support for mixed case schemes.976- Better handling of streaming downloads.977- Retrieve environment proxies from more locations.978- Minor cookies fixes.979- Improved redirect behaviour.980- Improved streaming behaviour, particularly for compressed data.981- Miscellaneous small Python 3 text encoding bugs.982- `.netrc` no longer overrides explicit auth.983- Cookies set by hooks are now correctly persisted on Sessions.984- Fix problem with cookies that specify port numbers in their host985 field.986- `BytesIO` can be used to perform streaming uploads.987- More generous parsing of the `no_proxy` environment variable.988- Non-string objects can be passed in data values alongside files.9899901.2.3 (2013-05-25)991------------------992993- Simple packaging fix9949951.2.2 (2013-05-23)996------------------997998- Simple packaging fix99910001.2.1 (2013-05-20)1001------------------10021003- 301 and 302 redirects now change the verb to GET for all verbs, not1004 just POST, improving browser compatibility.1005- Python 3.3.2 compatibility1006- Always percent-encode location headers1007- Fix connection adapter matching to be most-specific first1008- new argument to the default connection adapter for passing a block1009 argument1010- prevent a KeyError when there's no link headers101110121.2.0 (2013-03-31)1013------------------10141015- Fixed cookies on sessions and on requests1016- Significantly change how hooks are dispatched - hooks now receive1017 all the arguments specified by the user when making a request so1018 hooks can make a secondary request with the same parameters. This is1019 especially necessary for authentication handler authors1020- certifi support was removed1021- Fixed bug where using OAuth 1 with body `signature_type` sent no1022 data1023- Major proxy work thanks to @Lukasa including parsing of proxy1024 authentication from the proxy url1025- Fix DigestAuth handling too many 401s1026- Update vendored urllib3 to include SSL bug fixes1027- Allow keyword arguments to be passed to `json.loads()` via the1028 `Response.json()` method1029- Don't send `Content-Length` header by default on `GET` or `HEAD`1030 requests1031- Add `elapsed` attribute to `Response` objects to time how long a1032 request took.1033- Fix `RequestsCookieJar`1034- Sessions and Adapters are now picklable, i.e., can be used with the1035 multiprocessing library1036- Update charade to version 1.0.310371038The change in how hooks are dispatched will likely cause a great deal of1039issues.104010411.1.0 (2013-01-10)1042------------------10431044- CHUNKED REQUESTS1045- Support for iterable response bodies1046- Assume servers persist redirect params1047- Allow explicit content types to be specified for file data1048- Make merge\_kwargs case-insensitive when looking up keys104910501.0.3 (2012-12-18)1051------------------10521053- Fix file upload encoding bug1054- Fix cookie behavior105510561.0.2 (2012-12-17)1057------------------10581059- Proxy fix for HTTPAdapter.106010611.0.1 (2012-12-17)1062------------------10631064- Cert verification exception bug.1065- Proxy fix for HTTPAdapter.106610671.0.0 (2012-12-17)1068------------------10691070- Massive Refactor and Simplification1071- Switch to Apache 2.0 license1072- Swappable Connection Adapters1073- Mountable Connection Adapters1074- Mutable ProcessedRequest chain1075- /s/prefetch/stream1076- Removal of all configuration1077- Standard library logging1078- Make Response.json() callable, not property.1079- Usage of new charade project, which provides python 2 and 31080 simultaneous chardet.1081- Removal of all hooks except 'response'1082- Removal of all authentication helpers (OAuth, Kerberos)10831084This is not a backwards compatible change.108510860.14.2 (2012-10-27)1087-------------------10881089- Improved mime-compatible JSON handling1090- Proxy fixes1091- Path hack fixes1092- Case-Insensitive Content-Encoding headers1093- Support for CJK parameters in form posts109410950.14.1 (2012-10-01)1096-------------------10971098- Python 3.3 Compatibility1099- Simply default accept-encoding1100- Bugfixes110111020.14.0 (2012-09-02)1103-------------------11041105- No more iter\_content errors if already downloaded.110611070.13.9 (2012-08-25)1108-------------------11091110- Fix for OAuth + POSTs1111- Remove exception eating from dispatch\_hook1112- General bugfixes111311140.13.8 (2012-08-21)1115-------------------11161117- Incredible Link header support :)111811190.13.7 (2012-08-19)1120-------------------11211122- Support for (key, value) lists everywhere.1123- Digest Authentication improvements.1124- Ensure proxy exclusions work properly.1125- Clearer UnicodeError exceptions.1126- Automatic casting of URLs to strings (fURL and such)1127- Bugfixes.112811290.13.6 (2012-08-06)1130-------------------11311132- Long awaited fix for hanging connections!113311340.13.5 (2012-07-27)1135-------------------11361137- Packaging fix113811390.13.4 (2012-07-27)1140-------------------11411142- GSSAPI/Kerberos authentication!1143- App Engine 2.7 Fixes!1144- Fix leaking connections (from urllib3 update)1145- OAuthlib path hack fix1146- OAuthlib URL parameters fix.114711480.13.3 (2012-07-12)1149-------------------11501151- Use simplejson if available.1152- Do not hide SSLErrors behind Timeouts.1153- Fixed param handling with urls containing fragments.1154- Significantly improved information in User Agent.1155- client certificates are ignored when verify=False115611570.13.2 (2012-06-28)1158-------------------11591160- Zero dependencies (once again)!1161- New: Response.reason1162- Sign querystring parameters in OAuth 1.01163- Client certificates no longer ignored when verify=False1164- Add openSUSE certificate support116511660.13.1 (2012-06-07)1167-------------------11681169- Allow passing a file or file-like object as data.1170- Allow hooks to return responses that indicate errors.1171- Fix Response.text and Response.json for body-less responses.117211730.13.0 (2012-05-29)1174-------------------11751176- Removal of Requests.async in favor of1177 [grequests](https://github.com/kennethreitz/grequests)1178- Allow disabling of cookie persistence.1179- New implementation of safe\_mode1180- cookies.get now supports default argument1181- Session cookies not saved when Session.request is called with1182 return\_response=False1183- Env: no\_proxy support.1184- RequestsCookieJar improvements.1185- Various bug fixes.118611870.12.1 (2012-05-08)1188-------------------11891190- New `Response.json` property.1191- Ability to add string file uploads.1192- Fix out-of-range issue with iter\_lines.1193- Fix iter\_content default size.1194- Fix POST redirects containing files.119511960.12.0 (2012-05-02)1197-------------------11981199- EXPERIMENTAL OAUTH SUPPORT!1200- Proper CookieJar-backed cookies interface with awesome dict-like1201 interface.1202- Speed fix for non-iterated content chunks.1203- Move `pre_request` to a more usable place.1204- New `pre_send` hook.1205- Lazily encode data, params, files.1206- Load system Certificate Bundle if `certify` isn't available.1207- Cleanups, fixes.120812090.11.2 (2012-04-22)1210-------------------12111212- Attempt to use the OS's certificate bundle if `certifi` isn't1213 available.1214- Infinite digest auth redirect fix.1215- Multi-part file upload improvements.1216- Fix decoding of invalid %encodings in URLs.1217- If there is no content in a response don't throw an error the second1218 time that content is attempted to be read.1219- Upload data on redirects.122012210.11.1 (2012-03-30)1222-------------------12231224- POST redirects now break RFC to do what browsers do: Follow up with1225 a GET.1226- New `strict_mode` configuration to disable new redirect behavior.122712280.11.0 (2012-03-14)1229-------------------12301231- Private SSL Certificate support1232- Remove select.poll from Gevent monkeypatching1233- Remove redundant generator for chunked transfer encoding1234- Fix: Response.ok raises Timeout Exception in safe\_mode123512360.10.8 (2012-03-09)1237-------------------12381239- Generate chunked ValueError fix1240- Proxy configuration by environment variables1241- Simplification of iter\_lines.1242- New trust\_env configuration for disabling system/environment hints.1243- Suppress cookie errors.124412450.10.7 (2012-03-07)1246-------------------12471248- encode\_uri = False124912500.10.6 (2012-02-25)1251-------------------12521253- Allow '=' in cookies.125412550.10.5 (2012-02-25)1256-------------------12571258- Response body with 0 content-length fix.1259- New async.imap.1260- Don't fail on netrc.126112620.10.4 (2012-02-20)1263-------------------12641265- Honor netrc.126612670.10.3 (2012-02-20)1268-------------------12691270- HEAD requests don't follow redirects anymore.1271- raise\_for\_status() doesn't raise for 3xx anymore.1272- Make Session objects picklable.1273- ValueError for invalid schema URLs.127412750.10.2 (2012-01-15)1276-------------------12771278- Vastly improved URL quoting.1279- Additional allowed cookie key values.1280- Attempted fix for "Too many open files" Error1281- Replace unicode errors on first pass, no need for second pass.1282- Append '/' to bare-domain urls before query insertion.1283- Exceptions now inherit from RuntimeError.1284- Binary uploads + auth fix.1285- Bugfixes.128612870.10.1 (2012-01-23)1288-------------------12891290- PYTHON 3 SUPPORT!1291- Dropped 2.5 Support. (*Backwards Incompatible*)129212930.10.0 (2012-01-21)1294-------------------12951296- `Response.content` is now bytes-only. (*Backwards Incompatible*)1297- New `Response.text` is unicode-only.1298- If no `Response.encoding` is specified and `chardet` is available,1299 `Response.text` will guess an encoding.1300- Default to ISO-8859-1 (Western) encoding for "text" subtypes.1301- Removal of decode\_unicode. (*Backwards Incompatible*)1302- New multiple-hooks system.1303- New `Response.register_hook` for registering hooks within the1304 pipeline.1305- `Response.url` is now Unicode.130613070.9.3 (2012-01-18)1308------------------13091310- SSL verify=False bugfix (apparent on windows machines).131113120.9.2 (2012-01-18)1313------------------13141315- Asynchronous async.send method.1316- Support for proper chunk streams with boundaries.1317- session argument for Session classes.1318- Print entire hook tracebacks, not just exception instance.1319- Fix response.iter\_lines from pending next line.1320- Fix but in HTTP-digest auth w/ URI having query strings.1321- Fix in Event Hooks section.1322- Urllib3 update.132313240.9.1 (2012-01-06)1325------------------13261327- danger\_mode for automatic Response.raise\_for\_status()1328- Response.iter\_lines refactor132913300.9.0 (2011-12-28)1331------------------13321333- verify ssl is default.133413350.8.9 (2011-12-28)1336------------------13371338- Packaging fix.133913400.8.8 (2011-12-28)1341------------------13421343- SSL CERT VERIFICATION!1344- Release of Cerifi: Mozilla's cert list.1345- New 'verify' argument for SSL requests.1346- Urllib3 update.134713480.8.7 (2011-12-24)1349------------------13501351- iter\_lines last-line truncation fix1352- Force safe\_mode for async requests1353- Handle safe\_mode exceptions more consistently1354- Fix iteration on null responses in safe\_mode135513560.8.6 (2011-12-18)1357------------------13581359- Socket timeout fixes.1360- Proxy Authorization support.136113620.8.5 (2011-12-14)1363------------------13641365- Response.iter\_lines!136613670.8.4 (2011-12-11)1368------------------13691370- Prefetch bugfix.1371- Added license to installed version.137213730.8.3 (2011-11-27)1374------------------13751376- Converted auth system to use simpler callable objects.1377- New session parameter to API methods.1378- Display full URL while logging.137913800.8.2 (2011-11-19)1381------------------13821383- New Unicode decoding system, based on over-ridable1384 Response.encoding.1385- Proper URL slash-quote handling.1386- Cookies with `[`, `]`, and `_` allowed.138713880.8.1 (2011-11-15)1389------------------13901391- URL Request path fix1392- Proxy fix.1393- Timeouts fix.139413950.8.0 (2011-11-13)1396------------------13971398- Keep-alive support!1399- Complete removal of Urllib21400- Complete removal of Poster1401- Complete removal of CookieJars1402- New ConnectionError raising1403- Safe\_mode for error catching1404- prefetch parameter for request methods1405- OPTION method1406- Async pool size throttling1407- File uploads send real names1408- Vendored in urllib3140914100.7.6 (2011-11-07)1411------------------14121413- Digest authentication bugfix (attach query data to path)141414150.7.5 (2011-11-04)1416------------------14171418- Response.content = None if there was an invalid response.1419- Redirection auth handling.142014210.7.4 (2011-10-26)1422------------------14231424- Session Hooks fix.142514260.7.3 (2011-10-23)1427------------------14281429- Digest Auth fix.143014310.7.2 (2011-10-23)1432------------------14331434- PATCH Fix.143514360.7.1 (2011-10-23)1437------------------14381439- Move away from urllib2 authentication handling.1440- Fully Remove AuthManager, AuthObject, &c.1441- New tuple-based auth system with handler callbacks.144214430.7.0 (2011-10-22)1444------------------14451446- Sessions are now the primary interface.1447- Deprecated InvalidMethodException.1448- PATCH fix.1449- New config system (no more global settings).145014510.6.6 (2011-10-19)1452------------------14531454- Session parameter bugfix (params merging).145514560.6.5 (2011-10-18)1457------------------14581459- Offline (fast) test suite.1460- Session dictionary argument merging.146114620.6.4 (2011-10-13)1463------------------14641465- Automatic decoding of unicode, based on HTTP Headers.1466- New `decode_unicode` setting.1467- Removal of `r.read/close` methods.1468- New `r.faw` interface for advanced response usage.\*1469- Automatic expansion of parameterized headers.147014710.6.3 (2011-10-13)1472------------------14731474- Beautiful `requests.async` module, for making async requests w/1475 gevent.147614770.6.2 (2011-10-09)1478------------------14791480- GET/HEAD obeys allow\_redirects=False.148114820.6.1 (2011-08-20)1483------------------14841485- Enhanced status codes experience `\o/`1486- Set a maximum number of redirects (`settings.max_redirects`)1487- Full Unicode URL support1488- Support for protocol-less redirects.1489- Allow for arbitrary request types.1490- Bugfixes149114920.6.0 (2011-08-17)1493------------------14941495- New callback hook system1496- New persistent sessions object and context manager1497- Transparent Dict-cookie handling1498- Status code reference object1499- Removed Response.cached1500- Added Response.request1501- All args are kwargs1502- Relative redirect support1503- HTTPError handling improvements1504- Improved https testing1505- Bugfixes150615070.5.1 (2011-07-23)1508------------------15091510- International Domain Name Support!1511- Access headers without fetching entire body (`read()`)1512- Use lists as dicts for parameters1513- Add Forced Basic Authentication1514- Forced Basic is default authentication type1515- `python-requests.org` default User-Agent header1516- CaseInsensitiveDict lower-case caching1517- Response.history bugfix151815190.5.0 (2011-06-21)1520------------------15211522- PATCH Support1523- Support for Proxies1524- HTTPBin Test Suite1525- Redirect Fixes1526- settings.verbose stream writing1527- Querystrings for all methods1528- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as1529 explicitly raised1530 `r.requests.get('hwe://blah'); r.raise_for_status()`153115320.4.1 (2011-05-22)1533------------------15341535- Improved Redirection Handling1536- New 'allow\_redirects' param for following non-GET/HEAD Redirects1537- Settings module refactoring153815390.4.0 (2011-05-15)1540------------------15411542- Response.history: list of redirected responses1543- Case-Insensitive Header Dictionaries!1544- Unicode URLs154515460.3.4 (2011-05-14)1547------------------15481549- Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)1550- Internal Refactor1551- Bytes data upload Bugfix155215530.3.3 (2011-05-12)1554------------------15551556- Request timeouts1557- Unicode url-encoded data1558- Settings context manager and module155915600.3.2 (2011-04-15)1561------------------15621563- Automatic Decompression of GZip Encoded Content1564- AutoAuth Support for Tupled HTTP Auth156515660.3.1 (2011-04-01)1567------------------15681569- Cookie Changes1570- Response.read()1571- Poster fix157215730.3.0 (2011-02-25)1574------------------15751576- Automatic Authentication API Change1577- Smarter Query URL Parameterization1578- Allow file uploads and POST data together1579- 15801581 New Authentication Manager System15821583 : - Simpler Basic HTTP System1584 - Supports all build-in urllib2 Auths1585 - Allows for custom Auth Handlers158615870.2.4 (2011-02-19)1588------------------15891590- Python 2.5 Support1591- PyPy-c v1.4 Support1592- Auto-Authentication tests1593- Improved Request object constructor159415950.2.3 (2011-02-15)1596------------------15971598- 15991600 New HTTPHandling Methods16011602 : - Response.\_\_nonzero\_\_ (false if bad HTTP Status)1603 - Response.ok (True if expected HTTP Status)1604 - Response.error (Logged HTTPError if bad HTTP Status)1605 - Response.raise\_for\_status() (Raises stored HTTPError)160616070.2.2 (2011-02-14)1608------------------16091610- Still handles request in the event of an HTTPError. (Issue \#2)1611- Eventlet and Gevent Monkeypatch support.1612- Cookie Support (Issue \#1)161316140.2.1 (2011-02-14)1615------------------16161617- Added file attribute to POST and PUT requests for multipart-encode1618 file uploads.1619- Added Request.url attribute for context and redirects162016210.2.0 (2011-02-14)1622------------------16231624- Birth!162516260.0.1 (2011-02-13)1627------------------16281629- Frustration1630- Conception1631