Skip to content
Myr

history

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 02a5d7b · Browse files · 1 file+1602 added−0 removed
This commit

State

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

Diff stats

1 file+1602 added−0 removed

  • other:+1602 added−0 removed

1 file+1602 added−0 removed

added:HISTORY.md+1602 added
1Release History2===============34dev5---67**Bugfixes** - Content-Type header parsing is now case-insensitive (e.g.8charset=utf8 v Charset=utf8).910- \[Short description of non-trivial change.\]11122.19.1 (2018-06-14)13-------------------1415**Bugfixes**1617- Fixed issue where status\_codes.py's `init` function failed trying18 to append to a `__doc__` value of `None`.19202.19.0 (2018-06-12)21-------------------2223**Improvements**2425- Warn user about possible slowdown when using cryptography version26 &lt; 1.3.427- Check for invalid host in proxy URL, before forwarding request to28 adapter.29- Fragments are now properly maintained across redirects. (RFC723130 7.1.2)31- Removed use of cgi module to expedite library load time.32- Added support for SHA-256 and SHA-512 digest auth algorithms.33- Minor performance improvement to `Request.content`.34- Migrate to using collections.abc for 3.7 compatibility.3536**Bugfixes**3738- Parsing empty `Link` headers with `parse_header_links()` no longer39 return one bogus entry.40- Fixed issue where loading the default certificate bundle from a zip41 archive would raise an `IOError`.42- Fixed issue with unexpected `ImportError` on windows system which do43 not support `winreg` module.44- DNS resolution in proxy bypass no longer includes the username and45 password in the request. This also fixes the issue of DNS queries46 failing on macOS.47- Properly normalize adapter prefixes for url comparison.48- Passing `None` as a file pointer to the `files` param no longer49 raises an exception.50- Calling `copy` on a `RequestsCookieJar` will now preserve the cookie51 policy correctly.5253**Dependencies**5455- We now support idna v2.7.56- We now support urllib3 v1.23.57582.18.4 (2017-08-15)59-------------------6061**Improvements**6263- Error messages for invalid headers now include the header name for64 easier debugging6566**Dependencies**6768- We now support idna v2.6.69702.18.3 (2017-08-02)71-------------------7273**Improvements**7475- Running `$ python -m requests.help` now includes the installed76 version of idna.7778**Bugfixes**7980- Fixed issue where Requests would raise `ConnectionError` instead of81 `SSLError` when encountering SSL problems when using urllib3 v1.22.82832.18.2 (2017-07-25)84-------------------8586**Bugfixes**8788- `requests.help` no longer fails on Python 2.6 due to the absence of89 `ssl.OPENSSL_VERSION_NUMBER`.9091**Dependencies**9293- We now support urllib3 v1.22.94952.18.1 (2017-06-14)96-------------------9798**Bugfixes**99100- Fix an error in the packaging whereby the `*.whl` contained101 incorrect data that regressed the fix in v2.17.3.1021032.18.0 (2017-06-14)104-------------------105106**Improvements**107108- `Response` is now a context manager, so can be used directly in a109 `with` statement without first having to be wrapped by110 `contextlib.closing()`.111112**Bugfixes**113114- Resolve installation failure if multiprocessing is not available115- Resolve tests crash if multiprocessing is not able to determine the116 number of CPU cores117- Resolve error swallowing in utils set\_environ generator1181192.17.3 (2017-05-29)120-------------------121122**Improvements**123124- Improved `packages` namespace identity support, for monkeypatching125 libraries.1261272.17.2 (2017-05-29)128-------------------129130**Improvements**131132- Improved `packages` namespace identity support, for monkeypatching133 libraries.1341352.17.1 (2017-05-29)136-------------------137138**Improvements**139140- Improved `packages` namespace identity support, for monkeypatching141 libraries.1421432.17.0 (2017-05-29)144-------------------145146**Improvements**147148- Removal of the 301 redirect cache. This improves thread-safety.1491502.16.5 (2017-05-28)151-------------------152153- Improvements to `$ python -m requests.help`.1541552.16.4 (2017-05-27)156-------------------157158- Introduction of the `$ python -m requests.help` command, for159 debugging with maintainers!1601612.16.3 (2017-05-27)162-------------------163164- Further restored the `requests.packages` namespace for compatibility165 reasons.1661672.16.2 (2017-05-27)168-------------------169170- Further restored the `requests.packages` namespace for compatibility171 reasons.172173No code modification (noted below) should be necessary any longer.1741752.16.1 (2017-05-27)176-------------------177178- Restored the `requests.packages` namespace for compatibility179 reasons.180- Bugfix for `urllib3` version parsing.181182**Note**: code that was written to import against the183`requests.packages` namespace previously will have to import code that184rests at this module-level now.185186For example:187188 from requests.packages.urllib3.poolmanager import PoolManager189190Will need to be re-written to be:191192 from requests.packages import urllib3193 urllib3.poolmanager.PoolManager194195Or, even better:196197 from urllib3.poolmanager import PoolManager1981992.16.0 (2017-05-26)200-------------------201202- Unvendor ALL the things!2032042.15.1 (2017-05-26)205-------------------206207- Everyone makes mistakes.2082092.15.0 (2017-05-26)210-------------------211212**Improvements**213214- Introduction of the `Response.next` property, for getting the next215 `PreparedResponse` from a redirect chain (when216 `allow_redirects=False`).217- Internal refactoring of `__version__` module.218219**Bugfixes**220221- Restored once-optional parameter for222 `requests.utils.get_environ_proxies()`.2232242.14.2 (2017-05-10)225-------------------226227**Bugfixes**228229- Changed a less-than to an equal-to and an or in the dependency230 markers to widen compatibility with older setuptools releases.2312322.14.1 (2017-05-09)233-------------------234235**Bugfixes**236237- Changed the dependency markers to widen compatibility with older pip238 releases.2392402.14.0 (2017-05-09)241-------------------242243**Improvements**244245- It is now possible to pass `no_proxy` as a key to the `proxies`246 dictionary to provide handling similar to the `NO_PROXY` environment247 variable.248- When users provide invalid paths to certificate bundle files or249 directories Requests now raises `IOError`, rather than failing at250 the time of the HTTPS request with a fairly inscrutable certificate251 validation error.252- The behavior of `SessionRedirectMixin` was slightly altered.253 `resolve_redirects` will now detect a redirect by calling254 `get_redirect_target(response)` instead of directly querying255 `Response.is_redirect` and `Response.headers['location']`. Advanced256 users will be able to process malformed redirects more easily.257- Changed the internal calculation of elapsed request time to have258 higher resolution on Windows.259- Added `win_inet_pton` as conditional dependency for the `[socks]`260 extra on Windows with Python 2.7.261- Changed the proxy bypass implementation on Windows: the proxy bypass262 check doesn't use forward and reverse DNS requests anymore263- URLs with schemes that begin with `http` but are not `http` or264 `https` no longer have their host parts forced to lowercase.265266**Bugfixes**267268- Much improved handling of non-ASCII `Location` header values in269 redirects. Fewer `UnicodeDecodeErrors` are encountered on Python 2,270 and Python 3 now correctly understands that Latin-1 is unlikely to271 be the correct encoding.272- If an attempt to `seek` file to find out its length fails, we now273 appropriately handle that by aborting our content-length274 calculations.275- Restricted `HTTPDigestAuth` to only respond to auth challenges made276 on 4XX responses, rather than to all auth challenges.277- Fixed some code that was firing `DeprecationWarning` on Python 3.6.278- The dismayed person emoticon (`/o\\`) no longer has a big head. I'm279 sure this is what you were all worrying about most.280281**Miscellaneous**282283- Updated bundled urllib3 to v1.21.1.284- Updated bundled chardet to v3.0.2.285- Updated bundled idna to v2.5.286- Updated bundled certifi to 2017.4.17.2872882.13.0 (2017-01-24)289-------------------290291**Features**292293- Only load the `idna` library when we've determined we need it. This294 will save some memory for users.295296**Miscellaneous**297298- Updated bundled urllib3 to 1.20.299- Updated bundled idna to 2.2.3003012.12.5 (2017-01-18)302-------------------303304**Bugfixes**305306- Fixed an issue with JSON encoding detection, specifically detecting307 big-endian UTF-32 with BOM.3083092.12.4 (2016-12-14)310-------------------311312**Bugfixes**313314- Fixed regression from 2.12.2 where non-string types were rejected in315 the basic auth parameters. While support for this behaviour has been316 readded, the behaviour is deprecated and will be removed in the317 future.3183192.12.3 (2016-12-01)320-------------------321322**Bugfixes**323324- Fixed regression from v2.12.1 for URLs with schemes that begin with325 "http". These URLs have historically been processed as though they326 were HTTP-schemed URLs, and so have had parameters added. This was327 removed in v2.12.2 in an overzealous attempt to resolve problems328 with IDNA-encoding those URLs. This change was reverted: the other329 fixes for IDNA-encoding have been judged to be sufficient to return330 to the behaviour Requests had before v2.12.0.3313322.12.2 (2016-11-30)333-------------------334335**Bugfixes**336337- Fixed several issues with IDNA-encoding URLs that are technically338 invalid but which are widely accepted. Requests will now attempt to339 IDNA-encode a URL if it can but, if it fails, and the host contains340 only ASCII characters, it will be passed through optimistically.341 This will allow users to opt-in to using IDNA2003 themselves if they342 want to, and will also allow technically invalid but still common343 hostnames.344- Fixed an issue where URLs with leading whitespace would raise345 `InvalidSchema` errors.346- Fixed an issue where some URLs without the HTTP or HTTPS schemes347 would still have HTTP URL preparation applied to them.348- Fixed an issue where Unicode strings could not be used in basic349 auth.350- Fixed an issue encountered by some Requests plugins where351 constructing a Response object would cause `Response.content` to352 raise an `AttributeError`.3533542.12.1 (2016-11-16)355-------------------356357**Bugfixes**358359- Updated setuptools 'security' extra for the new PyOpenSSL backend in360 urllib3.361362**Miscellaneous**363364- Updated bundled urllib3 to 1.19.1.3653662.12.0 (2016-11-15)367-------------------368369**Improvements**370371- Updated support for internationalized domain names from IDNA2003 to372 IDNA2008. This updated support is required for several forms of IDNs373 and is mandatory for .de domains.374- Much improved heuristics for guessing content lengths: Requests will375 no longer read an entire `StringIO` into memory.376- Much improved logic for recalculating `Content-Length` headers for377 `PreparedRequest` objects.378- Improved tolerance for file-like objects that have no `tell` method379 but do have a `seek` method.380- Anything that is a subclass of `Mapping` is now treated like a381 dictionary by the `data=` keyword argument.382- Requests now tolerates empty passwords in proxy credentials, rather383 than stripping the credentials.384- If a request is made with a file-like object as the body and that385 request is redirected with a 307 or 308 status code, Requests will386 now attempt to rewind the body object so it can be replayed.387388**Bugfixes**389390- When calling `response.close`, the call to `close` will be391 propagated through to non-urllib3 backends.392- Fixed issue where the `ALL_PROXY` environment variable would be393 preferred over scheme-specific variables like `HTTP_PROXY`.394- Fixed issue where non-UTF8 reason phrases got severely mangled by395 falling back to decoding using ISO 8859-1 instead.396- Fixed a bug where Requests would not correctly correlate cookies set397 when using custom Host headers if those Host headers did not use the398 native string type for the platform.399400**Miscellaneous**401402- Updated bundled urllib3 to 1.19.403- Updated bundled certifi certs to 2016.09.26.4044052.11.1 (2016-08-17)406-------------------407408**Bugfixes**409410- Fixed a bug when using `iter_content` with `decode_unicode=True` for411 streamed bodies would raise `AttributeError`. This bug was412 introduced in 2.11.413- Strip Content-Type and Transfer-Encoding headers from the header414 block when following a redirect that transforms the verb from415 POST/PUT to GET.4164172.11.0 (2016-08-08)418-------------------419420**Improvements**421422- Added support for the `ALL_PROXY` environment variable.423- Reject header values that contain leading whitespace or newline424 characters to reduce risk of header smuggling.425426**Bugfixes**427428- Fixed occasional `TypeError` when attempting to decode a JSON429 response that occurred in an error case. Now correctly returns a430 `ValueError`.431- Requests would incorrectly ignore a non-CIDR IP address in the432 `NO_PROXY` environment variables: Requests now treats it as a433 specific IP.434- Fixed a bug when sending JSON data that could cause us to encounter435 obscure OpenSSL errors in certain network conditions (yes, really).436- Added type checks to ensure that `iter_content` only accepts437 integers and `None` for chunk sizes.438- Fixed issue where responses whose body had not been fully consumed439 would have the underlying connection closed but not returned to the440 connection pool, which could cause Requests to hang in situations441 where the `HTTPAdapter` had been configured to use a blocking442 connection pool.443444**Miscellaneous**445446- Updated bundled urllib3 to 1.16.447- Some previous releases accidentally accepted non-strings as448 acceptable header values. This release does not.4494502.10.0 (2016-04-29)451-------------------452453**New Features**454455- SOCKS Proxy Support! (requires PySocks;456 `$ pip install requests[socks]`)457458**Miscellaneous**459460- Updated bundled urllib3 to 1.15.1.4614622.9.2 (2016-04-29)463------------------464465**Improvements**466467- Change built-in CaseInsensitiveDict (used for headers) to use468 OrderedDict as its underlying datastore.469470**Bugfixes**471472- Don't use redirect\_cache if allow\_redirects=False473- When passed objects that throw exceptions from `tell()`, send them474 via chunked transfer encoding instead of failing.475- Raise a ProxyError for proxy related connection issues.4764772.9.1 (2015-12-21)478------------------479480**Bugfixes**481482- Resolve regression introduced in 2.9.0 that made it impossible to483 send binary strings as bodies in Python 3.484- Fixed errors when calculating cookie expiration dates in certain485 locales.486487**Miscellaneous**488489- Updated bundled urllib3 to 1.13.1.4904912.9.0 (2015-12-15)492------------------493494**Minor Improvements** (Backwards compatible)495496- The `verify` keyword argument now supports being passed a path to a497 directory of CA certificates, not just a single-file bundle.498- Warnings are now emitted when sending files opened in text mode.499- Added the 511 Network Authentication Required status code to the500 status code registry.501502**Bugfixes**503504- For file-like objects that are not seeked to the very beginning, we505 now send the content length for the number of bytes we will actually506 read, rather than the total size of the file, allowing partial file507 uploads.508- When uploading file-like objects, if they are empty or have no509 obvious content length we set `Transfer-Encoding: chunked` rather510 than `Content-Length: 0`.511- We correctly receive the response in buffered mode when uploading512 chunked bodies.513- We now handle being passed a query string as a bytestring on Python514 3, by decoding it as UTF-8.515- Sessions are now closed in all cases (exceptional and not) when516 using the functional API rather than leaking and waiting for the517 garbage collector to clean them up.518- Correctly handle digest auth headers with a malformed `qop`519 directive that contains no token, by treating it the same as if no520 `qop` directive was provided at all.521- Minor performance improvements when removing specific cookies by522 name.523524**Miscellaneous**525526- Updated urllib3 to 1.13.5275282.8.1 (2015-10-13)529------------------530531**Bugfixes**532533- Update certificate bundle to match `certifi` 2015.9.6.2's weak534 certificate bundle.535- Fix a bug in 2.8.0 where requests would raise `ConnectTimeout`536 instead of `ConnectionError`537- When using the PreparedRequest flow, requests will now correctly538 respect the `json` parameter. Broken in 2.8.0.539- When using the PreparedRequest flow, requests will now correctly540 handle a Unicode-string method name on Python 2. Broken in 2.8.0.5415422.8.0 (2015-10-05)543------------------544545**Minor Improvements** (Backwards Compatible)546547- Requests now supports per-host proxies. This allows the `proxies`548 dictionary to have entries of the form549 `{'<scheme>://<hostname>': '<proxy>'}`. Host-specific proxies will550 be used in preference to the previously-supported scheme-specific551 ones, but the previous syntax will continue to work.552- `Response.raise_for_status` now prints the URL that failed as part553 of the exception message.554- `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,555 defaulting to `False`. When `True`, errors parsing `.netrc` files556 cause exceptions to be thrown.557- Change to bundled projects import logic to make it easier to558 unbundle requests downstream.559- Changed the default User-Agent string to avoid leaking data on560 Linux: now contains only the requests version.561562**Bugfixes**563564- The `json` parameter to `post()` and friends will now only be used565 if neither `data` nor `files` are present, consistent with the566 documentation.567- We now ignore empty fields in the `NO_PROXY` environment variable.568- Fixed problem where `httplib.BadStatusLine` would get raised if569 combining `stream=True` with `contextlib.closing`.570- Prevented bugs where we would attempt to return the same connection571 back to the connection pool twice when sending a Chunked body.572- Miscellaneous minor internal changes.573- Digest Auth support is now thread safe.574575**Updates**576577- Updated urllib3 to 1.12.5785792.7.0 (2015-05-03)580------------------581582This is the first release that follows our new release process. For583more, see [our584documentation](http://docs.python-requests.org/en/latest/community/release-process/).585586**Bugfixes**587588- Updated urllib3 to 1.10.4, resolving several bugs involving chunked589 transfer encoding and response framing.5905912.6.2 (2015-04-23)592------------------593594**Bugfixes**595596- Fix regression where compressed data that was sent as chunked data597 was not properly decompressed. (\#2561)5985992.6.1 (2015-04-22)600------------------601602**Bugfixes**603604- Remove VendorAlias import machinery introduced in v2.5.2.605- Simplify the PreparedRequest.prepare API: We no longer require the606 user to pass an empty list to the hooks keyword argument. (c.f.607 \#2552)608- Resolve redirects now receives and forwards all of the original609 arguments to the adapter. (\#2503)610- Handle UnicodeDecodeErrors when trying to deal with a unicode URL611 that cannot be encoded in ASCII. (\#2540)612- Populate the parsed path of the URI field when performing Digest613 Authentication. (\#2426)614- Copy a PreparedRequest's CookieJar more reliably when it is not an615 instance of RequestsCookieJar. (\#2527)6166172.6.0 (2015-03-14)618------------------619620**Bugfixes**621622- CVE-2015-2296: Fix handling of cookies on redirect. Previously a623 cookie without a host value set would use the hostname for the624 redirected URL exposing requests users to session fixation attacks625 and potentially cookie stealing. This was disclosed privately by626 Matthew Daley of [BugFuzz](https://bugfuzz.com). This affects all627 versions of requests from v2.1.0 to v2.5.3 (inclusive on both ends).628- Fix error when requests is an `install_requires` dependency and629 `python setup.py test` is run. (\#2462)630- Fix error when urllib3 is unbundled and requests continues to use631 the vendored import location.632- Include fixes to `urllib3`'s header handling.633- Requests' handling of unvendored dependencies is now more634 restrictive.635636**Features and Improvements**637638- Support bytearrays when passed as parameters in the `files`639 argument. (\#2468)640- Avoid data duplication when creating a request with `str`, `bytes`,641 or `bytearray` input to the `files` argument.6426432.5.3 (2015-02-24)644------------------645646**Bugfixes**647648- Revert changes to our vendored certificate bundle. For more context649 see (\#2455, \#2456, and <http://bugs.python.org/issue23476>)6506512.5.2 (2015-02-23)652------------------653654**Features and Improvements**655656- Add sha256 fingerprint support.657 ([shazow/urllib3\#540](https://github.com/shazow/urllib3/pull/540))658- Improve the performance of headers.659 ([shazow/urllib3\#544](https://github.com/shazow/urllib3/pull/544))660661**Bugfixes**662663- Copy pip's import machinery. When downstream redistributors remove664 requests.packages.urllib3 the import machinery will continue to let665 those same symbols work. Example usage in requests' documentation666 and 3rd-party libraries relying on the vendored copies of urllib3667 will work without having to fallback to the system urllib3.668- Attempt to quote parts of the URL on redirect if unquoting and then669 quoting fails. (\#2356)670- Fix filename type check for multipart form-data uploads. (\#2411)671- Properly handle the case where a server issuing digest672 authentication challenges provides both auth and auth-int673 qop-values. (\#2408)674- Fix a socket leak.675 ([shazow/urllib3\#549](https://github.com/shazow/urllib3/pull/549))676- Fix multiple `Set-Cookie` headers properly.677 ([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))678- Disable the built-in hostname verification.679 ([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))680- Fix the behaviour of decoding an exhausted stream.681 ([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))682683**Security**684685- Pulled in an updated `cacert.pem`.686- Drop RC4 from the default cipher list.687 ([shazow/urllib3\#551](https://github.com/shazow/urllib3/pull/551))6886892.5.1 (2014-12-23)690------------------691692**Behavioural Changes**693694- Only catch HTTPErrors in raise\_for\_status (\#2382)695696**Bugfixes**697698- Handle LocationParseError from urllib3 (\#2344)699- Handle file-like object filenames that are not strings (\#2379)700- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated701 (\#2389)7027032.5.0 (2014-12-01)704------------------705706**Improvements**707708- Allow usage of urllib3's Retry object with HTTPAdapters (\#2216)709- The `iter_lines` method on a response now accepts a delimiter with710 which to split the content (\#2295)711712**Behavioural Changes**713714- Add deprecation warnings to functions in requests.utils that will be715 removed in 3.0 (\#2309)716- Sessions used by the functional API are always closed (\#2326)717- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9)718 (\#2323)719720**Bugfixes**721722- Only parse the URL once (\#2353)723- Allow Content-Length header to always be overridden (\#2332)724- Properly handle files in HTTPDigestAuth (\#2333)725- Cap redirect\_cache size to prevent memory abuse (\#2299)726- Fix HTTPDigestAuth handling of redirects after authenticating727 successfully (\#2253)728- Fix crash with custom method parameter to Session.request (\#2317)729- Fix how Link headers are parsed using the regular expression library730 (\#2271)731732**Documentation**733734- Add more references for interlinking (\#2348)735- Update CSS for theme (\#2290)736- Update width of buttons and sidebar (\#2289)737- Replace references of Gittip with Gratipay (\#2282)738- Add link to changelog in sidebar (\#2273)7397402.4.3 (2014-10-06)741------------------742743**Bugfixes**744745- Unicode URL improvements for Python 2.746- Re-order JSON param for backwards compat.747- Automatically defrag authentication schemes from host/pass URIs.748 ([\#2249](https://github.com/requests/requests/issues/2249))7497502.4.2 (2014-10-05)751------------------752753**Improvements**754755- FINALLY! Add json parameter for uploads!756 ([\#2258](https://github.com/requests/requests/pull/2258))757- Support for bytestring URLs on Python 3.x758 ([\#2238](https://github.com/requests/requests/pull/2238))759760**Bugfixes**761762- Avoid getting stuck in a loop763 ([\#2244](https://github.com/requests/requests/pull/2244))764- Multiple calls to iter\* fail with unhelpful error.765 ([\#2240](https://github.com/requests/requests/issues/2240),766 [\#2241](https://github.com/requests/requests/issues/2241))767768**Documentation**769770- Correct redirection introduction771 ([\#2245](https://github.com/requests/requests/pull/2245/))772- Added example of how to send multiple files in one request.773 ([\#2227](https://github.com/requests/requests/pull/2227/))774- Clarify how to pass a custom set of CAs775 ([\#2248](https://github.com/requests/requests/pull/2248/))7767772.4.1 (2014-09-09)778------------------779780- Now has a "security" package extras set,781 `$ pip install requests[security]`782- Requests will now use Certifi if it is available.783- Capture and re-raise urllib3 ProtocolError784- Bugfix for responses that attempt to redirect to themselves forever785 (wtf?).7867872.4.0 (2014-08-29)788------------------789790**Behavioral Changes**791792- `Connection: keep-alive` header is now sent automatically.793794**Improvements**795796- Support for connect timeouts! Timeout now accepts a tuple (connect,797 read) which is used to set individual connect and read timeouts.798- Allow copying of PreparedRequests without headers/cookies.799- Updated bundled urllib3 version.800- Refactored settings loading from environment -- new801 Session.merge\_environment\_settings.802- Handle socket errors in iter\_content.8038042.3.0 (2014-05-16)805------------------806807**API Changes**808809- New `Response` property `is_redirect`, which is true when the810 library could have processed this response as a redirection (whether811 or not it actually did).812- The `timeout` parameter now affects requests with both `stream=True`813 and `stream=False` equally.814- The change in v2.0.0 to mandate explicit proxy schemes has been815 reverted. Proxy schemes now default to `http://`.816- The `CaseInsensitiveDict` used for HTTP headers now behaves like a817 normal dictionary when references as string or viewed in the818 interpreter.819820**Bugfixes**821822- No longer expose Authorization or Proxy-Authorization headers on823 redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively.824- Authorization is re-evaluated each redirect.825- On redirect, pass url as native strings.826- Fall-back to autodetected encoding for JSON when Unicode detection827 fails.828- Headers set to `None` on the `Session` are now correctly not sent.829- Correctly honor `decode_unicode` even if it wasn't used earlier in830 the same response.831- Stop advertising `compress` as a supported Content-Encoding.832- The `Response.history` parameter is now always a list.833- Many, many `urllib3` bugfixes.8348352.2.1 (2014-01-23)836------------------837838**Bugfixes**839840- Fixes incorrect parsing of proxy credentials that contain a literal841 or encoded '\#' character.842- Assorted urllib3 fixes.8438442.2.0 (2014-01-09)845------------------846847**API Changes**848849- New exception: `ContentDecodingError`. Raised instead of `urllib3`850 `DecodeError` exceptions.851852**Bugfixes**853854- Avoid many many exceptions from the buggy implementation of855 `proxy_bypass` on OS X in Python 2.6.856- Avoid crashing when attempting to get authentication credentials857 from \~/.netrc when running as a user without a home directory.858- Use the correct pool size for pools of connections to proxies.859- Fix iteration of `CookieJar` objects.860- Ensure that cookies are persisted over redirect.861- Switch back to using chardet, since it has merged with charade.8628632.1.0 (2013-12-05)864------------------865866- Updated CA Bundle, of course.867- Cookies set on individual Requests through a `Session` (e.g. via868 `Session.get()`) are no longer persisted to the `Session`.869- Clean up connections when we hit problems during chunked upload,870 rather than leaking them.871- Return connections to the pool when a chunked upload is successful,872 rather than leaking it.873- Match the HTTPbis recommendation for HTTP 301 redirects.874- Prevent hanging when using streaming uploads and Digest Auth when a875 401 is received.876- Values of headers set by Requests are now always the native string877 type.878- Fix previously broken SNI support.879- Fix accessing HTTP proxies using proxy authentication.880- Unencode HTTP Basic usernames and passwords extracted from URLs.881- Support for IP address ranges for no\_proxy environment variable882- Parse headers correctly when users override the default `Host:`883 header.884- Avoid munging the URL in case of case-sensitive servers.885- Looser URL handling for non-HTTP/HTTPS urls.886- Accept unicode methods in Python 2.6 and 2.7.887- More resilient cookie handling.888- Make `Response` objects pickleable.889- Actually added MD5-sess to Digest Auth instead of pretending to like890 last time.891- Updated internal urllib3.892- Fixed @Lukasa's lack of taste.8938942.0.1 (2013-10-24)895------------------896897- Updated included CA Bundle with new mistrusts and automated process898 for the future899- Added MD5-sess to Digest Auth900- Accept per-file headers in multipart file POST messages.901- Fixed: Don't send the full URL on CONNECT messages.902- Fixed: Correctly lowercase a redirect scheme.903- Fixed: Cookies not persisted when set via functional API.904- Fixed: Translate urllib3 ProxyError into a requests ProxyError905 derived from ConnectionError.906- Updated internal urllib3 and chardet.9079082.0.0 (2013-09-24)909------------------910911**API Changes:**912913- Keys in the Headers dictionary are now native strings on all Python914 versions, i.e. bytestrings on Python 2, unicode on Python 3.915- Proxy URLs now *must* have an explicit scheme. A `MissingSchema`916 exception will be raised if they don't.917- Timeouts now apply to read time if `Stream=False`.918- `RequestException` is now a subclass of `IOError`, not919 `RuntimeError`.920- Added new method to `PreparedRequest` objects:921 `PreparedRequest.copy()`.922- Added new method to `Session` objects: `Session.update_request()`.923 This method updates a `Request` object with the data (e.g. cookies)924 stored on the `Session`.925- Added new method to `Session` objects: `Session.prepare_request()`.926 This method updates and prepares a `Request` object, and returns the927 corresponding `PreparedRequest` object.928- Added new method to `HTTPAdapter` objects:929 `HTTPAdapter.proxy_headers()`. This should not be called directly,930 but improves the subclass interface.931- `httplib.IncompleteRead` exceptions caused by incorrect chunked932 encoding will now raise a Requests `ChunkedEncodingError` instead.933- Invalid percent-escape sequences now cause a Requests `InvalidURL`934 exception to be raised.935- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses936 `"already_reported"`.937- HTTP 226 reason added (`"im_used"`).938939**Bugfixes:**940941- Vastly improved proxy support, including the CONNECT verb. Special942 thanks to the many contributors who worked towards this improvement.943- Cookies are now properly managed when 401 authentication responses944 are received.945- Chunked encoding fixes.946- Support for mixed case schemes.947- Better handling of streaming downloads.948- Retrieve environment proxies from more locations.949- Minor cookies fixes.950- Improved redirect behaviour.951- Improved streaming behaviour, particularly for compressed data.952- Miscellaneous small Python 3 text encoding bugs.953- `.netrc` no longer overrides explicit auth.954- Cookies set by hooks are now correctly persisted on Sessions.955- Fix problem with cookies that specify port numbers in their host956 field.957- `BytesIO` can be used to perform streaming uploads.958- More generous parsing of the `no_proxy` environment variable.959- Non-string objects can be passed in data values alongside files.9609611.2.3 (2013-05-25)962------------------963964- Simple packaging fix9659661.2.2 (2013-05-23)967------------------968969- Simple packaging fix9709711.2.1 (2013-05-20)972------------------973974- 301 and 302 redirects now change the verb to GET for all verbs, not975 just POST, improving browser compatibility.976- Python 3.3.2 compatibility977- Always percent-encode location headers978- Fix connection adapter matching to be most-specific first979- new argument to the default connection adapter for passing a block980 argument981- prevent a KeyError when there's no link headers9829831.2.0 (2013-03-31)984------------------985986- Fixed cookies on sessions and on requests987- Significantly change how hooks are dispatched - hooks now receive988 all the arguments specified by the user when making a request so989 hooks can make a secondary request with the same parameters. This is990 especially necessary for authentication handler authors991- certifi support was removed992- Fixed bug where using OAuth 1 with body `signature_type` sent no993 data994- Major proxy work thanks to @Lukasa including parsing of proxy995 authentication from the proxy url996- Fix DigestAuth handling too many 401s997- Update vendored urllib3 to include SSL bug fixes998- Allow keyword arguments to be passed to `json.loads()` via the999 `Response.json()` method1000- Don't send `Content-Length` header by default on `GET` or `HEAD`1001 requests1002- Add `elapsed` attribute to `Response` objects to time how long a1003 request took.1004- Fix `RequestsCookieJar`1005- Sessions and Adapters are now picklable, i.e., can be used with the1006 multiprocessing library1007- Update charade to version 1.0.310081009The change in how hooks are dispatched will likely cause a great deal of1010issues.101110121.1.0 (2013-01-10)1013------------------10141015- CHUNKED REQUESTS1016- Support for iterable response bodies1017- Assume servers persist redirect params1018- Allow explicit content types to be specified for file data1019- Make merge\_kwargs case-insensitive when looking up keys102010211.0.3 (2012-12-18)1022------------------10231024- Fix file upload encoding bug1025- Fix cookie behavior102610271.0.2 (2012-12-17)1028------------------10291030- Proxy fix for HTTPAdapter.103110321.0.1 (2012-12-17)1033------------------10341035- Cert verification exception bug.1036- Proxy fix for HTTPAdapter.103710381.0.0 (2012-12-17)1039------------------10401041- Massive Refactor and Simplification1042- Switch to Apache 2.0 license1043- Swappable Connection Adapters1044- Mountable Connection Adapters1045- Mutable ProcessedRequest chain1046- /s/prefetch/stream1047- Removal of all configuration1048- Standard library logging1049- Make Response.json() callable, not property.1050- Usage of new charade project, which provides python 2 and 31051 simultaneous chardet.1052- Removal of all hooks except 'response'1053- Removal of all authentication helpers (OAuth, Kerberos)10541055This is not a backwards compatible change.105610570.14.2 (2012-10-27)1058-------------------10591060- Improved mime-compatible JSON handling1061- Proxy fixes1062- Path hack fixes1063- Case-Insensitive Content-Encoding headers1064- Support for CJK parameters in form posts106510660.14.1 (2012-10-01)1067-------------------10681069- Python 3.3 Compatibility1070- Simply default accept-encoding1071- Bugfixes107210730.14.0 (2012-09-02)1074-------------------10751076- No more iter\_content errors if already downloaded.107710780.13.9 (2012-08-25)1079-------------------10801081- Fix for OAuth + POSTs1082- Remove exception eating from dispatch\_hook1083- General bugfixes108410850.13.8 (2012-08-21)1086-------------------10871088- Incredible Link header support :)108910900.13.7 (2012-08-19)1091-------------------10921093- Support for (key, value) lists everywhere.1094- Digest Authentication improvements.1095- Ensure proxy exclusions work properly.1096- Clearer UnicodeError exceptions.1097- Automatic casting of URLs to strings (fURL and such)1098- Bugfixes.109911000.13.6 (2012-08-06)1101-------------------11021103- Long awaited fix for hanging connections!110411050.13.5 (2012-07-27)1106-------------------11071108- Packaging fix110911100.13.4 (2012-07-27)1111-------------------11121113- GSSAPI/Kerberos authentication!1114- App Engine 2.7 Fixes!1115- Fix leaking connections (from urllib3 update)1116- OAuthlib path hack fix1117- OAuthlib URL parameters fix.111811190.13.3 (2012-07-12)1120-------------------11211122- Use simplejson if available.1123- Do not hide SSLErrors behind Timeouts.1124- Fixed param handling with urls containing fragments.1125- Significantly improved information in User Agent.1126- client certificates are ignored when verify=False112711280.13.2 (2012-06-28)1129-------------------11301131- Zero dependencies (once again)!1132- New: Response.reason1133- Sign querystring parameters in OAuth 1.01134- Client certificates no longer ignored when verify=False1135- Add openSUSE certificate support113611370.13.1 (2012-06-07)1138-------------------11391140- Allow passing a file or file-like object as data.1141- Allow hooks to return responses that indicate errors.1142- Fix Response.text and Response.json for body-less responses.114311440.13.0 (2012-05-29)1145-------------------11461147- Removal of Requests.async in favor of1148 [grequests](https://github.com/kennethreitz/grequests)1149- Allow disabling of cookie persistence.1150- New implementation of safe\_mode1151- cookies.get now supports default argument1152- Session cookies not saved when Session.request is called with1153 return\_response=False1154- Env: no\_proxy support.1155- RequestsCookieJar improvements.1156- Various bug fixes.115711580.12.1 (2012-05-08)1159-------------------11601161- New `Response.json` property.1162- Ability to add string file uploads.1163- Fix out-of-range issue with iter\_lines.1164- Fix iter\_content default size.1165- Fix POST redirects containing files.116611670.12.0 (2012-05-02)1168-------------------11691170- EXPERIMENTAL OAUTH SUPPORT!1171- Proper CookieJar-backed cookies interface with awesome dict-like1172 interface.1173- Speed fix for non-iterated content chunks.1174- Move `pre_request` to a more usable place.1175- New `pre_send` hook.1176- Lazily encode data, params, files.1177- Load system Certificate Bundle if `certify` isn't available.1178- Cleanups, fixes.117911800.11.2 (2012-04-22)1181-------------------11821183- Attempt to use the OS's certificate bundle if `certifi` isn't1184 available.1185- Infinite digest auth redirect fix.1186- Multi-part file upload improvements.1187- Fix decoding of invalid %encodings in URLs.1188- If there is no content in a response don't throw an error the second1189 time that content is attempted to be read.1190- Upload data on redirects.119111920.11.1 (2012-03-30)1193-------------------11941195- POST redirects now break RFC to do what browsers do: Follow up with1196 a GET.1197- New `strict_mode` configuration to disable new redirect behavior.119811990.11.0 (2012-03-14)1200-------------------12011202- Private SSL Certificate support1203- Remove select.poll from Gevent monkeypatching1204- Remove redundant generator for chunked transfer encoding1205- Fix: Response.ok raises Timeout Exception in safe\_mode120612070.10.8 (2012-03-09)1208-------------------12091210- Generate chunked ValueError fix1211- Proxy configuration by environment variables1212- Simplification of iter\_lines.1213- New trust\_env configuration for disabling system/environment hints.1214- Suppress cookie errors.121512160.10.7 (2012-03-07)1217-------------------12181219- encode\_uri = False122012210.10.6 (2012-02-25)1222-------------------12231224- Allow '=' in cookies.122512260.10.5 (2012-02-25)1227-------------------12281229- Response body with 0 content-length fix.1230- New async.imap.1231- Don't fail on netrc.123212330.10.4 (2012-02-20)1234-------------------12351236- Honor netrc.123712380.10.3 (2012-02-20)1239-------------------12401241- HEAD requests don't follow redirects anymore.1242- raise\_for\_status() doesn't raise for 3xx anymore.1243- Make Session objects picklable.1244- ValueError for invalid schema URLs.124512460.10.2 (2012-01-15)1247-------------------12481249- Vastly improved URL quoting.1250- Additional allowed cookie key values.1251- Attempted fix for "Too many open files" Error1252- Replace unicode errors on first pass, no need for second pass.1253- Append '/' to bare-domain urls before query insertion.1254- Exceptions now inherit from RuntimeError.1255- Binary uploads + auth fix.1256- Bugfixes.125712580.10.1 (2012-01-23)1259-------------------12601261- PYTHON 3 SUPPORT!1262- Dropped 2.5 Support. (*Backwards Incompatible*)126312640.10.0 (2012-01-21)1265-------------------12661267- `Response.content` is now bytes-only. (*Backwards Incompatible*)1268- New `Response.text` is unicode-only.1269- If no `Response.encoding` is specified and `chardet` is available,1270 `Response.text` will guess an encoding.1271- Default to ISO-8859-1 (Western) encoding for "text" subtypes.1272- Removal of decode\_unicode. (*Backwards Incompatible*)1273- New multiple-hooks system.1274- New `Response.register_hook` for registering hooks within the1275 pipeline.1276- `Response.url` is now Unicode.127712780.9.3 (2012-01-18)1279------------------12801281- SSL verify=False bugfix (apparent on windows machines).128212830.9.2 (2012-01-18)1284------------------12851286- Asynchronous async.send method.1287- Support for proper chunk streams with boundaries.1288- session argument for Session classes.1289- Print entire hook tracebacks, not just exception instance.1290- Fix response.iter\_lines from pending next line.1291- Fix but in HTTP-digest auth w/ URI having query strings.1292- Fix in Event Hooks section.1293- Urllib3 update.129412950.9.1 (2012-01-06)1296------------------12971298- danger\_mode for automatic Response.raise\_for\_status()1299- Response.iter\_lines refactor130013010.9.0 (2011-12-28)1302------------------13031304- verify ssl is default.130513060.8.9 (2011-12-28)1307------------------13081309- Packaging fix.131013110.8.8 (2011-12-28)1312------------------13131314- SSL CERT VERIFICATION!1315- Release of Cerifi: Mozilla's cert list.1316- New 'verify' argument for SSL requests.1317- Urllib3 update.131813190.8.7 (2011-12-24)1320------------------13211322- iter\_lines last-line truncation fix1323- Force safe\_mode for async requests1324- Handle safe\_mode exceptions more consistently1325- Fix iteration on null responses in safe\_mode132613270.8.6 (2011-12-18)1328------------------13291330- Socket timeout fixes.1331- Proxy Authorization support.133213330.8.5 (2011-12-14)1334------------------13351336- Response.iter\_lines!133713380.8.4 (2011-12-11)1339------------------13401341- Prefetch bugfix.1342- Added license to installed version.134313440.8.3 (2011-11-27)1345------------------13461347- Converted auth system to use simpler callable objects.1348- New session parameter to API methods.1349- Display full URL while logging.135013510.8.2 (2011-11-19)1352------------------13531354- New Unicode decoding system, based on over-ridable1355 Response.encoding.1356- Proper URL slash-quote handling.1357- Cookies with `[`, `]`, and `_` allowed.135813590.8.1 (2011-11-15)1360------------------13611362- URL Request path fix1363- Proxy fix.1364- Timeouts fix.136513660.8.0 (2011-11-13)1367------------------13681369- Keep-alive support!1370- Complete removal of Urllib21371- Complete removal of Poster1372- Complete removal of CookieJars1373- New ConnectionError raising1374- Safe\_mode for error catching1375- prefetch parameter for request methods1376- OPTION method1377- Async pool size throttling1378- File uploads send real names1379- Vendored in urllib3138013810.7.6 (2011-11-07)1382------------------13831384- Digest authentication bugfix (attach query data to path)138513860.7.5 (2011-11-04)1387------------------13881389- Response.content = None if there was an invalid response.1390- Redirection auth handling.139113920.7.4 (2011-10-26)1393------------------13941395- Session Hooks fix.139613970.7.3 (2011-10-23)1398------------------13991400- Digest Auth fix.140114020.7.2 (2011-10-23)1403------------------14041405- PATCH Fix.140614070.7.1 (2011-10-23)1408------------------14091410- Move away from urllib2 authentication handling.1411- Fully Remove AuthManager, AuthObject, &c.1412- New tuple-based auth system with handler callbacks.141314140.7.0 (2011-10-22)1415------------------14161417- Sessions are now the primary interface.1418- Deprecated InvalidMethodException.1419- PATCH fix.1420- New config system (no more global settings).142114220.6.6 (2011-10-19)1423------------------14241425- Session parameter bugfix (params merging).142614270.6.5 (2011-10-18)1428------------------14291430- Offline (fast) test suite.1431- Session dictionary argument merging.143214330.6.4 (2011-10-13)1434------------------14351436- Automatic decoding of unicode, based on HTTP Headers.1437- New `decode_unicode` setting.1438- Removal of `r.read/close` methods.1439- New `r.faw` interface for advanced response usage.\*1440- Automatic expansion of parameterized headers.144114420.6.3 (2011-10-13)1443------------------14441445- Beautiful `requests.async` module, for making async requests w/1446 gevent.144714480.6.2 (2011-10-09)1449------------------14501451- GET/HEAD obeys allow\_redirects=False.145214530.6.1 (2011-08-20)1454------------------14551456- Enhanced status codes experience `\o/`1457- Set a maximum number of redirects (`settings.max_redirects`)1458- Full Unicode URL support1459- Support for protocol-less redirects.1460- Allow for arbitrary request types.1461- Bugfixes146214630.6.0 (2011-08-17)1464------------------14651466- New callback hook system1467- New persistent sessions object and context manager1468- Transparent Dict-cookie handling1469- Status code reference object1470- Removed Response.cached1471- Added Response.request1472- All args are kwargs1473- Relative redirect support1474- HTTPError handling improvements1475- Improved https testing1476- Bugfixes147714780.5.1 (2011-07-23)1479------------------14801481- International Domain Name Support!1482- Access headers without fetching entire body (`read()`)1483- Use lists as dicts for parameters1484- Add Forced Basic Authentication1485- Forced Basic is default authentication type1486- `python-requests.org` default User-Agent header1487- CaseInsensitiveDict lower-case caching1488- Response.history bugfix148914900.5.0 (2011-06-21)1491------------------14921493- PATCH Support1494- Support for Proxies1495- HTTPBin Test Suite1496- Redirect Fixes1497- settings.verbose stream writing1498- Querystrings for all methods1499- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as1500 explicitly raised1501 `r.requests.get('hwe://blah'); r.raise_for_status()`150215030.4.1 (2011-05-22)1504------------------15051506- Improved Redirection Handling1507- New 'allow\_redirects' param for following non-GET/HEAD Redirects1508- Settings module refactoring150915100.4.0 (2011-05-15)1511------------------15121513- Response.history: list of redirected responses1514- Case-Insensitive Header Dictionaries!1515- Unicode URLs151615170.3.4 (2011-05-14)1518------------------15191520- Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)1521- Internal Refactor1522- Bytes data upload Bugfix152315240.3.3 (2011-05-12)1525------------------15261527- Request timeouts1528- Unicode url-encoded data1529- Settings context manager and module153015310.3.2 (2011-04-15)1532------------------15331534- Automatic Decompression of GZip Encoded Content1535- AutoAuth Support for Tupled HTTP Auth153615370.3.1 (2011-04-01)1538------------------15391540- Cookie Changes1541- Response.read()1542- Poster fix154315440.3.0 (2011-02-25)1545------------------15461547- Automatic Authentication API Change1548- Smarter Query URL Parameterization1549- Allow file uploads and POST data together1550- 15511552 New Authentication Manager System15531554 : - Simpler Basic HTTP System1555 - Supports all build-in urllib2 Auths1556 - Allows for custom Auth Handlers155715580.2.4 (2011-02-19)1559------------------15601561- Python 2.5 Support1562- PyPy-c v1.4 Support1563- Auto-Authentication tests1564- Improved Request object constructor156515660.2.3 (2011-02-15)1567------------------15681569- 15701571 New HTTPHandling Methods15721573 : - Response.\_\_nonzero\_\_ (false if bad HTTP Status)1574 - Response.ok (True if expected HTTP Status)1575 - Response.error (Logged HTTPError if bad HTTP Status)1576 - Response.raise\_for\_status() (Raises stored HTTPError)157715780.2.2 (2011-02-14)1579------------------15801581- Still handles request in the event of an HTTPError. (Issue \#2)1582- Eventlet and Gevent Monkeypatch support.1583- Cookie Support (Issue \#1)158415850.2.1 (2011-02-14)1586------------------15871588- Added file attribute to POST and PUT requests for multipart-encode1589 file uploads.1590- Added Request.url attribute for context and redirects159115920.2.0 (2011-02-14)1593------------------15941595- Birth!159615970.0.1 (2011-02-13)1598------------------15991600- Frustration1601- Conception1602