HISTORY.rst 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. .. :changelog:
  2. Release History
  3. ---------------
  4. 2.9.1 (2015-12-21)
  5. ++++++++++++++++++
  6. **Bugfixes**
  7. - Resolve regression introduced in 2.9.0 that made it impossible to send binary
  8. strings as bodies in Python 3.
  9. - Fixed errors when calculating cookie expiration dates in certain locales.
  10. **Miscellaneous**
  11. - Updated bundled urllib3 to 1.13.1.
  12. 2.9.0 (2015-12-15)
  13. ++++++++++++++++++
  14. **Minor Improvements** (Backwards compatible)
  15. - The ``verify`` keyword argument now supports being passed a path to a
  16. directory of CA certificates, not just a single-file bundle.
  17. - Warnings are now emitted when sending files opened in text mode.
  18. - Added the 511 Network Authentication Required status code to the status code
  19. registry.
  20. **Bugfixes**
  21. - For file-like objects that are not seeked to the very beginning, we now
  22. send the content length for the number of bytes we will actually read, rather
  23. than the total size of the file, allowing partial file uploads.
  24. - When uploading file-like objects, if they are empty or have no obvious
  25. content length we set ``Transfer-Encoding: chunked`` rather than
  26. ``Content-Length: 0``.
  27. - We correctly receive the response in buffered mode when uploading chunked
  28. bodies.
  29. - We now handle being passed a query string as a bytestring on Python 3, by
  30. decoding it as UTF-8.
  31. - Sessions are now closed in all cases (exceptional and not) when using the
  32. functional API rather than leaking and waiting for the garbage collector to
  33. clean them up.
  34. - Correctly handle digest auth headers with a malformed ``qop`` directive that
  35. contains no token, by treating it the same as if no ``qop`` directive was
  36. provided at all.
  37. - Minor performance improvements when removing specific cookies by name.
  38. **Miscellaneous**
  39. - Updated urllib3 to 1.13.
  40. 2.8.1 (2015-10-13)
  41. ++++++++++++++++++
  42. **Bugfixes**
  43. - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
  44. bundle.
  45. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
  46. ``ConnectionError``
  47. - When using the PreparedRequest flow, requests will now correctly respect the
  48. ``json`` parameter. Broken in 2.8.0.
  49. - When using the PreparedRequest flow, requests will now correctly handle a
  50. Unicode-string method name on Python 2. Broken in 2.8.0.
  51. 2.8.0 (2015-10-05)
  52. ++++++++++++++++++
  53. **Minor Improvements** (Backwards Compatible)
  54. - Requests now supports per-host proxies. This allows the ``proxies``
  55. dictionary to have entries of the form
  56. ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used
  57. in preference to the previously-supported scheme-specific ones, but the
  58. previous syntax will continue to work.
  59. - ``Response.raise_for_status`` now prints the URL that failed as part of the
  60. exception message.
  61. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,
  62. defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause
  63. exceptions to be thrown.
  64. - Change to bundled projects import logic to make it easier to unbundle
  65. requests downstream.
  66. - Changed the default User-Agent string to avoid leaking data on Linux: now
  67. contains only the requests version.
  68. **Bugfixes**
  69. - The ``json`` parameter to ``post()`` and friends will now only be used if
  70. neither ``data`` nor ``files`` are present, consistent with the
  71. documentation.
  72. - We now ignore empty fields in the ``NO_PROXY`` environment variable.
  73. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining
  74. ``stream=True`` with ``contextlib.closing``.
  75. - Prevented bugs where we would attempt to return the same connection back to
  76. the connection pool twice when sending a Chunked body.
  77. - Miscellaneous minor internal changes.
  78. - Digest Auth support is now thread safe.
  79. **Updates**
  80. - Updated urllib3 to 1.12.
  81. 2.7.0 (2015-05-03)
  82. ++++++++++++++++++
  83. This is the first release that follows our new release process. For more, see
  84. `our documentation
  85. <http://docs.python-requests.org/en/latest/community/release-process/>`_.
  86. **Bugfixes**
  87. - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer
  88. encoding and response framing.
  89. 2.6.2 (2015-04-23)
  90. ++++++++++++++++++
  91. **Bugfixes**
  92. - Fix regression where compressed data that was sent as chunked data was not
  93. properly decompressed. (#2561)
  94. 2.6.1 (2015-04-22)
  95. ++++++++++++++++++
  96. **Bugfixes**
  97. - Remove VendorAlias import machinery introduced in v2.5.2.
  98. - Simplify the PreparedRequest.prepare API: We no longer require the user to
  99. pass an empty list to the hooks keyword argument. (c.f. #2552)
  100. - Resolve redirects now receives and forwards all of the original arguments to
  101. the adapter. (#2503)
  102. - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that
  103. cannot be encoded in ASCII. (#2540)
  104. - Populate the parsed path of the URI field when performing Digest
  105. Authentication. (#2426)
  106. - Copy a PreparedRequest's CookieJar more reliably when it is not an instance
  107. of RequestsCookieJar. (#2527)
  108. 2.6.0 (2015-03-14)
  109. ++++++++++++++++++
  110. **Bugfixes**
  111. - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie
  112. without a host value set would use the hostname for the redirected URL
  113. exposing requests users to session fixation attacks and potentially cookie
  114. stealing. This was disclosed privately by Matthew Daley of
  115. `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from
  116. v2.1.0 to v2.5.3 (inclusive on both ends).
  117. - Fix error when requests is an ``install_requires`` dependency and ``python
  118. setup.py test`` is run. (#2462)
  119. - Fix error when urllib3 is unbundled and requests continues to use the
  120. vendored import location.
  121. - Include fixes to ``urllib3``'s header handling.
  122. - Requests' handling of unvendored dependencies is now more restrictive.
  123. **Features and Improvements**
  124. - Support bytearrays when passed as parameters in the ``files`` argument.
  125. (#2468)
  126. - Avoid data duplication when creating a request with ``str``, ``bytes``, or
  127. ``bytearray`` input to the ``files`` argument.
  128. 2.5.3 (2015-02-24)
  129. ++++++++++++++++++
  130. **Bugfixes**
  131. - Revert changes to our vendored certificate bundle. For more context see
  132. (#2455, #2456, and http://bugs.python.org/issue23476)
  133. 2.5.2 (2015-02-23)
  134. ++++++++++++++++++
  135. **Features and Improvements**
  136. - Add sha256 fingerprint support. (`shazow/urllib3#540`_)
  137. - Improve the performance of headers. (`shazow/urllib3#544`_)
  138. **Bugfixes**
  139. - Copy pip's import machinery. When downstream redistributors remove
  140. requests.packages.urllib3 the import machinery will continue to let those
  141. same symbols work. Example usage in requests' documentation and 3rd-party
  142. libraries relying on the vendored copies of urllib3 will work without having
  143. to fallback to the system urllib3.
  144. - Attempt to quote parts of the URL on redirect if unquoting and then quoting
  145. fails. (#2356)
  146. - Fix filename type check for multipart form-data uploads. (#2411)
  147. - Properly handle the case where a server issuing digest authentication
  148. challenges provides both auth and auth-int qop-values. (#2408)
  149. - Fix a socket leak. (`shazow/urllib3#549`_)
  150. - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)
  151. - Disable the built-in hostname verification. (`shazow/urllib3#526`_)
  152. - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)
  153. **Security**
  154. - Pulled in an updated ``cacert.pem``.
  155. - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)
  156. .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551
  157. .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549
  158. .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544
  159. .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540
  160. .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535
  161. .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534
  162. .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526
  163. 2.5.1 (2014-12-23)
  164. ++++++++++++++++++
  165. **Behavioural Changes**
  166. - Only catch HTTPErrors in raise_for_status (#2382)
  167. **Bugfixes**
  168. - Handle LocationParseError from urllib3 (#2344)
  169. - Handle file-like object filenames that are not strings (#2379)
  170. - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)
  171. 2.5.0 (2014-12-01)
  172. ++++++++++++++++++
  173. **Improvements**
  174. - Allow usage of urllib3's Retry object with HTTPAdapters (#2216)
  175. - The ``iter_lines`` method on a response now accepts a delimiter with which
  176. to split the content (#2295)
  177. **Behavioural Changes**
  178. - Add deprecation warnings to functions in requests.utils that will be removed
  179. in 3.0 (#2309)
  180. - Sessions used by the functional API are always closed (#2326)
  181. - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)
  182. **Bugfixes**
  183. - Only parse the URL once (#2353)
  184. - Allow Content-Length header to always be overridden (#2332)
  185. - Properly handle files in HTTPDigestAuth (#2333)
  186. - Cap redirect_cache size to prevent memory abuse (#2299)
  187. - Fix HTTPDigestAuth handling of redirects after authenticating successfully
  188. (#2253)
  189. - Fix crash with custom method parameter to Session.request (#2317)
  190. - Fix how Link headers are parsed using the regular expression library (#2271)
  191. **Documentation**
  192. - Add more references for interlinking (#2348)
  193. - Update CSS for theme (#2290)
  194. - Update width of buttons and sidebar (#2289)
  195. - Replace references of Gittip with Gratipay (#2282)
  196. - Add link to changelog in sidebar (#2273)
  197. 2.4.3 (2014-10-06)
  198. ++++++++++++++++++
  199. **Bugfixes**
  200. - Unicode URL improvements for Python 2.
  201. - Re-order JSON param for backwards compat.
  202. - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/kennethreitz/requests/issues/2249>`_)
  203. 2.4.2 (2014-10-05)
  204. ++++++++++++++++++
  205. **Improvements**
  206. - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/kennethreitz/requests/pull/2258>`_)
  207. - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/kennethreitz/requests/pull/2238>`_)
  208. **Bugfixes**
  209. - Avoid getting stuck in a loop (`#2244 <https://github.com/kennethreitz/requests/pull/2244>`_)
  210. - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/kennethreitz/requests/issues/2240>`_, `#2241 <https://github.com/kennethreitz/requests/issues/2241>`_)
  211. **Documentation**
  212. - Correct redirection introduction (`#2245 <https://github.com/kennethreitz/requests/pull/2245/>`_)
  213. - Added example of how to send multiple files in one request. (`#2227 <https://github.com/kennethreitz/requests/pull/2227/>`_)
  214. - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/kennethreitz/requests/pull/2248/>`_)
  215. 2.4.1 (2014-09-09)
  216. ++++++++++++++++++
  217. - Now has a "security" package extras set, ``$ pip install requests[security]``
  218. - Requests will now use Certifi if it is available.
  219. - Capture and re-raise urllib3 ProtocolError
  220. - Bugfix for responses that attempt to redirect to themselves forever (wtf?).
  221. 2.4.0 (2014-08-29)
  222. ++++++++++++++++++
  223. **Behavioral Changes**
  224. - ``Connection: keep-alive`` header is now sent automatically.
  225. **Improvements**
  226. - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
  227. - Allow copying of PreparedRequests without headers/cookies.
  228. - Updated bundled urllib3 version.
  229. - Refactored settings loading from environment -- new `Session.merge_environment_settings`.
  230. - Handle socket errors in iter_content.
  231. 2.3.0 (2014-05-16)
  232. ++++++++++++++++++
  233. **API Changes**
  234. - New ``Response`` property ``is_redirect``, which is true when the
  235. library could have processed this response as a redirection (whether
  236. or not it actually did).
  237. - The ``timeout`` parameter now affects requests with both ``stream=True`` and
  238. ``stream=False`` equally.
  239. - The change in v2.0.0 to mandate explicit proxy schemes has been reverted.
  240. Proxy schemes now default to ``http://``.
  241. - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal
  242. dictionary when references as string or viewed in the interpreter.
  243. **Bugfixes**
  244. - No longer expose Authorization or Proxy-Authorization headers on redirect.
  245. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
  246. - Authorization is re-evaluated each redirect.
  247. - On redirect, pass url as native strings.
  248. - Fall-back to autodetected encoding for JSON when Unicode detection fails.
  249. - Headers set to ``None`` on the ``Session`` are now correctly not sent.
  250. - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same
  251. response.
  252. - Stop advertising ``compress`` as a supported Content-Encoding.
  253. - The ``Response.history`` parameter is now always a list.
  254. - Many, many ``urllib3`` bugfixes.
  255. 2.2.1 (2014-01-23)
  256. ++++++++++++++++++
  257. **Bugfixes**
  258. - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.
  259. - Assorted urllib3 fixes.
  260. 2.2.0 (2014-01-09)
  261. ++++++++++++++++++
  262. **API Changes**
  263. - New exception: ``ContentDecodingError``. Raised instead of ``urllib3``
  264. ``DecodeError`` exceptions.
  265. **Bugfixes**
  266. - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.
  267. - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.
  268. - Use the correct pool size for pools of connections to proxies.
  269. - Fix iteration of ``CookieJar`` objects.
  270. - Ensure that cookies are persisted over redirect.
  271. - Switch back to using chardet, since it has merged with charade.
  272. 2.1.0 (2013-12-05)
  273. ++++++++++++++++++
  274. - Updated CA Bundle, of course.
  275. - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``.
  276. - Clean up connections when we hit problems during chunked upload, rather than leaking them.
  277. - Return connections to the pool when a chunked upload is successful, rather than leaking it.
  278. - Match the HTTPbis recommendation for HTTP 301 redirects.
  279. - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received.
  280. - Values of headers set by Requests are now always the native string type.
  281. - Fix previously broken SNI support.
  282. - Fix accessing HTTP proxies using proxy authentication.
  283. - Unencode HTTP Basic usernames and passwords extracted from URLs.
  284. - Support for IP address ranges for no_proxy environment variable
  285. - Parse headers correctly when users override the default ``Host:`` header.
  286. - Avoid munging the URL in case of case-sensitive servers.
  287. - Looser URL handling for non-HTTP/HTTPS urls.
  288. - Accept unicode methods in Python 2.6 and 2.7.
  289. - More resilient cookie handling.
  290. - Make ``Response`` objects pickleable.
  291. - Actually added MD5-sess to Digest Auth instead of pretending to like last time.
  292. - Updated internal urllib3.
  293. - Fixed @Lukasa's lack of taste.
  294. 2.0.1 (2013-10-24)
  295. ++++++++++++++++++
  296. - Updated included CA Bundle with new mistrusts and automated process for the future
  297. - Added MD5-sess to Digest Auth
  298. - Accept per-file headers in multipart file POST messages.
  299. - Fixed: Don't send the full URL on CONNECT messages.
  300. - Fixed: Correctly lowercase a redirect scheme.
  301. - Fixed: Cookies not persisted when set via functional API.
  302. - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
  303. - Updated internal urllib3 and chardet.
  304. 2.0.0 (2013-09-24)
  305. ++++++++++++++++++
  306. **API Changes:**
  307. - Keys in the Headers dictionary are now native strings on all Python versions,
  308. i.e. bytestrings on Python 2, unicode on Python 3.
  309. - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception
  310. will be raised if they don't.
  311. - Timeouts now apply to read time if ``Stream=False``.
  312. - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``.
  313. - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``.
  314. - Added new method to ``Session`` objects: ``Session.update_request()``. This
  315. method updates a ``Request`` object with the data (e.g. cookies) stored on
  316. the ``Session``.
  317. - Added new method to ``Session`` objects: ``Session.prepare_request()``. This
  318. method updates and prepares a ``Request`` object, and returns the
  319. corresponding ``PreparedRequest`` object.
  320. - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``.
  321. This should not be called directly, but improves the subclass interface.
  322. - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding
  323. will now raise a Requests ``ChunkedEncodingError`` instead.
  324. - Invalid percent-escape sequences now cause a Requests ``InvalidURL``
  325. exception to be raised.
  326. - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses
  327. ``"already_reported"``.
  328. - HTTP 226 reason added (``"im_used"``).
  329. **Bugfixes:**
  330. - Vastly improved proxy support, including the CONNECT verb. Special thanks to
  331. the many contributors who worked towards this improvement.
  332. - Cookies are now properly managed when 401 authentication responses are
  333. received.
  334. - Chunked encoding fixes.
  335. - Support for mixed case schemes.
  336. - Better handling of streaming downloads.
  337. - Retrieve environment proxies from more locations.
  338. - Minor cookies fixes.
  339. - Improved redirect behaviour.
  340. - Improved streaming behaviour, particularly for compressed data.
  341. - Miscellaneous small Python 3 text encoding bugs.
  342. - ``.netrc`` no longer overrides explicit auth.
  343. - Cookies set by hooks are now correctly persisted on Sessions.
  344. - Fix problem with cookies that specify port numbers in their host field.
  345. - ``BytesIO`` can be used to perform streaming uploads.
  346. - More generous parsing of the ``no_proxy`` environment variable.
  347. - Non-string objects can be passed in data values alongside files.
  348. 1.2.3 (2013-05-25)
  349. ++++++++++++++++++
  350. - Simple packaging fix
  351. 1.2.2 (2013-05-23)
  352. ++++++++++++++++++
  353. - Simple packaging fix
  354. 1.2.1 (2013-05-20)
  355. ++++++++++++++++++
  356. - 301 and 302 redirects now change the verb to GET for all verbs, not just
  357. POST, improving browser compatibility.
  358. - Python 3.3.2 compatibility
  359. - Always percent-encode location headers
  360. - Fix connection adapter matching to be most-specific first
  361. - new argument to the default connection adapter for passing a block argument
  362. - prevent a KeyError when there's no link headers
  363. 1.2.0 (2013-03-31)
  364. ++++++++++++++++++
  365. - Fixed cookies on sessions and on requests
  366. - Significantly change how hooks are dispatched - hooks now receive all the
  367. arguments specified by the user when making a request so hooks can make a
  368. secondary request with the same parameters. This is especially necessary for
  369. authentication handler authors
  370. - certifi support was removed
  371. - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
  372. - Major proxy work thanks to @Lukasa including parsing of proxy authentication
  373. from the proxy url
  374. - Fix DigestAuth handling too many 401s
  375. - Update vendored urllib3 to include SSL bug fixes
  376. - Allow keyword arguments to be passed to ``json.loads()`` via the
  377. ``Response.json()`` method
  378. - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
  379. requests
  380. - Add ``elapsed`` attribute to ``Response`` objects to time how long a request
  381. took.
  382. - Fix ``RequestsCookieJar``
  383. - Sessions and Adapters are now picklable, i.e., can be used with the
  384. multiprocessing library
  385. - Update charade to version 1.0.3
  386. The change in how hooks are dispatched will likely cause a great deal of
  387. issues.
  388. 1.1.0 (2013-01-10)
  389. ++++++++++++++++++
  390. - CHUNKED REQUESTS
  391. - Support for iterable response bodies
  392. - Assume servers persist redirect params
  393. - Allow explicit content types to be specified for file data
  394. - Make merge_kwargs case-insensitive when looking up keys
  395. 1.0.3 (2012-12-18)
  396. ++++++++++++++++++
  397. - Fix file upload encoding bug
  398. - Fix cookie behavior
  399. 1.0.2 (2012-12-17)
  400. ++++++++++++++++++
  401. - Proxy fix for HTTPAdapter.
  402. 1.0.1 (2012-12-17)
  403. ++++++++++++++++++
  404. - Cert verification exception bug.
  405. - Proxy fix for HTTPAdapter.
  406. 1.0.0 (2012-12-17)
  407. ++++++++++++++++++
  408. - Massive Refactor and Simplification
  409. - Switch to Apache 2.0 license
  410. - Swappable Connection Adapters
  411. - Mountable Connection Adapters
  412. - Mutable ProcessedRequest chain
  413. - /s/prefetch/stream
  414. - Removal of all configuration
  415. - Standard library logging
  416. - Make Response.json() callable, not property.
  417. - Usage of new charade project, which provides python 2 and 3 simultaneous chardet.
  418. - Removal of all hooks except 'response'
  419. - Removal of all authentication helpers (OAuth, Kerberos)
  420. This is not a backwards compatible change.
  421. 0.14.2 (2012-10-27)
  422. +++++++++++++++++++
  423. - Improved mime-compatible JSON handling
  424. - Proxy fixes
  425. - Path hack fixes
  426. - Case-Insensitive Content-Encoding headers
  427. - Support for CJK parameters in form posts
  428. 0.14.1 (2012-10-01)
  429. +++++++++++++++++++
  430. - Python 3.3 Compatibility
  431. - Simply default accept-encoding
  432. - Bugfixes
  433. 0.14.0 (2012-09-02)
  434. ++++++++++++++++++++
  435. - No more iter_content errors if already downloaded.
  436. 0.13.9 (2012-08-25)
  437. +++++++++++++++++++
  438. - Fix for OAuth + POSTs
  439. - Remove exception eating from dispatch_hook
  440. - General bugfixes
  441. 0.13.8 (2012-08-21)
  442. +++++++++++++++++++
  443. - Incredible Link header support :)
  444. 0.13.7 (2012-08-19)
  445. +++++++++++++++++++
  446. - Support for (key, value) lists everywhere.
  447. - Digest Authentication improvements.
  448. - Ensure proxy exclusions work properly.
  449. - Clearer UnicodeError exceptions.
  450. - Automatic casting of URLs to strings (fURL and such)
  451. - Bugfixes.
  452. 0.13.6 (2012-08-06)
  453. +++++++++++++++++++
  454. - Long awaited fix for hanging connections!
  455. 0.13.5 (2012-07-27)
  456. +++++++++++++++++++
  457. - Packaging fix
  458. 0.13.4 (2012-07-27)
  459. +++++++++++++++++++
  460. - GSSAPI/Kerberos authentication!
  461. - App Engine 2.7 Fixes!
  462. - Fix leaking connections (from urllib3 update)
  463. - OAuthlib path hack fix
  464. - OAuthlib URL parameters fix.
  465. 0.13.3 (2012-07-12)
  466. +++++++++++++++++++
  467. - Use simplejson if available.
  468. - Do not hide SSLErrors behind Timeouts.
  469. - Fixed param handling with urls containing fragments.
  470. - Significantly improved information in User Agent.
  471. - client certificates are ignored when verify=False
  472. 0.13.2 (2012-06-28)
  473. +++++++++++++++++++
  474. - Zero dependencies (once again)!
  475. - New: Response.reason
  476. - Sign querystring parameters in OAuth 1.0
  477. - Client certificates no longer ignored when verify=False
  478. - Add openSUSE certificate support
  479. 0.13.1 (2012-06-07)
  480. +++++++++++++++++++
  481. - Allow passing a file or file-like object as data.
  482. - Allow hooks to return responses that indicate errors.
  483. - Fix Response.text and Response.json for body-less responses.
  484. 0.13.0 (2012-05-29)
  485. +++++++++++++++++++
  486. - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_
  487. - Allow disabling of cookie persistence.
  488. - New implementation of safe_mode
  489. - cookies.get now supports default argument
  490. - Session cookies not saved when Session.request is called with return_response=False
  491. - Env: no_proxy support.
  492. - RequestsCookieJar improvements.
  493. - Various bug fixes.
  494. 0.12.1 (2012-05-08)
  495. +++++++++++++++++++
  496. - New ``Response.json`` property.
  497. - Ability to add string file uploads.
  498. - Fix out-of-range issue with iter_lines.
  499. - Fix iter_content default size.
  500. - Fix POST redirects containing files.
  501. 0.12.0 (2012-05-02)
  502. +++++++++++++++++++
  503. - EXPERIMENTAL OAUTH SUPPORT!
  504. - Proper CookieJar-backed cookies interface with awesome dict-like interface.
  505. - Speed fix for non-iterated content chunks.
  506. - Move ``pre_request`` to a more usable place.
  507. - New ``pre_send`` hook.
  508. - Lazily encode data, params, files.
  509. - Load system Certificate Bundle if ``certify`` isn't available.
  510. - Cleanups, fixes.
  511. 0.11.2 (2012-04-22)
  512. +++++++++++++++++++
  513. - Attempt to use the OS's certificate bundle if ``certifi`` isn't available.
  514. - Infinite digest auth redirect fix.
  515. - Multi-part file upload improvements.
  516. - Fix decoding of invalid %encodings in URLs.
  517. - If there is no content in a response don't throw an error the second time that content is attempted to be read.
  518. - Upload data on redirects.
  519. 0.11.1 (2012-03-30)
  520. +++++++++++++++++++
  521. * POST redirects now break RFC to do what browsers do: Follow up with a GET.
  522. * New ``strict_mode`` configuration to disable new redirect behavior.
  523. 0.11.0 (2012-03-14)
  524. +++++++++++++++++++
  525. * Private SSL Certificate support
  526. * Remove select.poll from Gevent monkeypatching
  527. * Remove redundant generator for chunked transfer encoding
  528. * Fix: Response.ok raises Timeout Exception in safe_mode
  529. 0.10.8 (2012-03-09)
  530. +++++++++++++++++++
  531. * Generate chunked ValueError fix
  532. * Proxy configuration by environment variables
  533. * Simplification of iter_lines.
  534. * New `trust_env` configuration for disabling system/environment hints.
  535. * Suppress cookie errors.
  536. 0.10.7 (2012-03-07)
  537. +++++++++++++++++++
  538. * `encode_uri` = False
  539. 0.10.6 (2012-02-25)
  540. +++++++++++++++++++
  541. * Allow '=' in cookies.
  542. 0.10.5 (2012-02-25)
  543. +++++++++++++++++++
  544. * Response body with 0 content-length fix.
  545. * New async.imap.
  546. * Don't fail on netrc.
  547. 0.10.4 (2012-02-20)
  548. +++++++++++++++++++
  549. * Honor netrc.
  550. 0.10.3 (2012-02-20)
  551. +++++++++++++++++++
  552. * HEAD requests don't follow redirects anymore.
  553. * raise_for_status() doesn't raise for 3xx anymore.
  554. * Make Session objects picklable.
  555. * ValueError for invalid schema URLs.
  556. 0.10.2 (2012-01-15)
  557. +++++++++++++++++++
  558. * Vastly improved URL quoting.
  559. * Additional allowed cookie key values.
  560. * Attempted fix for "Too many open files" Error
  561. * Replace unicode errors on first pass, no need for second pass.
  562. * Append '/' to bare-domain urls before query insertion.
  563. * Exceptions now inherit from RuntimeError.
  564. * Binary uploads + auth fix.
  565. * Bugfixes.
  566. 0.10.1 (2012-01-23)
  567. +++++++++++++++++++
  568. * PYTHON 3 SUPPORT!
  569. * Dropped 2.5 Support. (*Backwards Incompatible*)
  570. 0.10.0 (2012-01-21)
  571. +++++++++++++++++++
  572. * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)
  573. * New ``Response.text`` is unicode-only.
  574. * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.
  575. * Default to ISO-8859-1 (Western) encoding for "text" subtypes.
  576. * Removal of `decode_unicode`. (*Backwards Incompatible*)
  577. * New multiple-hooks system.
  578. * New ``Response.register_hook`` for registering hooks within the pipeline.
  579. * ``Response.url`` is now Unicode.
  580. 0.9.3 (2012-01-18)
  581. ++++++++++++++++++
  582. * SSL verify=False bugfix (apparent on windows machines).
  583. 0.9.2 (2012-01-18)
  584. ++++++++++++++++++
  585. * Asynchronous async.send method.
  586. * Support for proper chunk streams with boundaries.
  587. * session argument for Session classes.
  588. * Print entire hook tracebacks, not just exception instance.
  589. * Fix response.iter_lines from pending next line.
  590. * Fix but in HTTP-digest auth w/ URI having query strings.
  591. * Fix in Event Hooks section.
  592. * Urllib3 update.
  593. 0.9.1 (2012-01-06)
  594. ++++++++++++++++++
  595. * danger_mode for automatic Response.raise_for_status()
  596. * Response.iter_lines refactor
  597. 0.9.0 (2011-12-28)
  598. ++++++++++++++++++
  599. * verify ssl is default.
  600. 0.8.9 (2011-12-28)
  601. ++++++++++++++++++
  602. * Packaging fix.
  603. 0.8.8 (2011-12-28)
  604. ++++++++++++++++++
  605. * SSL CERT VERIFICATION!
  606. * Release of Cerifi: Mozilla's cert list.
  607. * New 'verify' argument for SSL requests.
  608. * Urllib3 update.
  609. 0.8.7 (2011-12-24)
  610. ++++++++++++++++++
  611. * iter_lines last-line truncation fix
  612. * Force safe_mode for async requests
  613. * Handle safe_mode exceptions more consistently
  614. * Fix iteration on null responses in safe_mode
  615. 0.8.6 (2011-12-18)
  616. ++++++++++++++++++
  617. * Socket timeout fixes.
  618. * Proxy Authorization support.
  619. 0.8.5 (2011-12-14)
  620. ++++++++++++++++++
  621. * Response.iter_lines!
  622. 0.8.4 (2011-12-11)
  623. ++++++++++++++++++
  624. * Prefetch bugfix.
  625. * Added license to installed version.
  626. 0.8.3 (2011-11-27)
  627. ++++++++++++++++++
  628. * Converted auth system to use simpler callable objects.
  629. * New session parameter to API methods.
  630. * Display full URL while logging.
  631. 0.8.2 (2011-11-19)
  632. ++++++++++++++++++
  633. * New Unicode decoding system, based on over-ridable `Response.encoding`.
  634. * Proper URL slash-quote handling.
  635. * Cookies with ``[``, ``]``, and ``_`` allowed.
  636. 0.8.1 (2011-11-15)
  637. ++++++++++++++++++
  638. * URL Request path fix
  639. * Proxy fix.
  640. * Timeouts fix.
  641. 0.8.0 (2011-11-13)
  642. ++++++++++++++++++
  643. * Keep-alive support!
  644. * Complete removal of Urllib2
  645. * Complete removal of Poster
  646. * Complete removal of CookieJars
  647. * New ConnectionError raising
  648. * Safe_mode for error catching
  649. * prefetch parameter for request methods
  650. * OPTION method
  651. * Async pool size throttling
  652. * File uploads send real names
  653. * Vendored in urllib3
  654. 0.7.6 (2011-11-07)
  655. ++++++++++++++++++
  656. * Digest authentication bugfix (attach query data to path)
  657. 0.7.5 (2011-11-04)
  658. ++++++++++++++++++
  659. * Response.content = None if there was an invalid response.
  660. * Redirection auth handling.
  661. 0.7.4 (2011-10-26)
  662. ++++++++++++++++++
  663. * Session Hooks fix.
  664. 0.7.3 (2011-10-23)
  665. ++++++++++++++++++
  666. * Digest Auth fix.
  667. 0.7.2 (2011-10-23)
  668. ++++++++++++++++++
  669. * PATCH Fix.
  670. 0.7.1 (2011-10-23)
  671. ++++++++++++++++++
  672. * Move away from urllib2 authentication handling.
  673. * Fully Remove AuthManager, AuthObject, &c.
  674. * New tuple-based auth system with handler callbacks.
  675. 0.7.0 (2011-10-22)
  676. ++++++++++++++++++
  677. * Sessions are now the primary interface.
  678. * Deprecated InvalidMethodException.
  679. * PATCH fix.
  680. * New config system (no more global settings).
  681. 0.6.6 (2011-10-19)
  682. ++++++++++++++++++
  683. * Session parameter bugfix (params merging).
  684. 0.6.5 (2011-10-18)
  685. ++++++++++++++++++
  686. * Offline (fast) test suite.
  687. * Session dictionary argument merging.
  688. 0.6.4 (2011-10-13)
  689. ++++++++++++++++++
  690. * Automatic decoding of unicode, based on HTTP Headers.
  691. * New ``decode_unicode`` setting.
  692. * Removal of ``r.read/close`` methods.
  693. * New ``r.faw`` interface for advanced response usage.*
  694. * Automatic expansion of parameterized headers.
  695. 0.6.3 (2011-10-13)
  696. ++++++++++++++++++
  697. * Beautiful ``requests.async`` module, for making async requests w/ gevent.
  698. 0.6.2 (2011-10-09)
  699. ++++++++++++++++++
  700. * GET/HEAD obeys allow_redirects=False.
  701. 0.6.1 (2011-08-20)
  702. ++++++++++++++++++
  703. * Enhanced status codes experience ``\o/``
  704. * Set a maximum number of redirects (``settings.max_redirects``)
  705. * Full Unicode URL support
  706. * Support for protocol-less redirects.
  707. * Allow for arbitrary request types.
  708. * Bugfixes
  709. 0.6.0 (2011-08-17)
  710. ++++++++++++++++++
  711. * New callback hook system
  712. * New persistent sessions object and context manager
  713. * Transparent Dict-cookie handling
  714. * Status code reference object
  715. * Removed Response.cached
  716. * Added Response.request
  717. * All args are kwargs
  718. * Relative redirect support
  719. * HTTPError handling improvements
  720. * Improved https testing
  721. * Bugfixes
  722. 0.5.1 (2011-07-23)
  723. ++++++++++++++++++
  724. * International Domain Name Support!
  725. * Access headers without fetching entire body (``read()``)
  726. * Use lists as dicts for parameters
  727. * Add Forced Basic Authentication
  728. * Forced Basic is default authentication type
  729. * ``python-requests.org`` default User-Agent header
  730. * CaseInsensitiveDict lower-case caching
  731. * Response.history bugfix
  732. 0.5.0 (2011-06-21)
  733. ++++++++++++++++++
  734. * PATCH Support
  735. * Support for Proxies
  736. * HTTPBin Test Suite
  737. * Redirect Fixes
  738. * settings.verbose stream writing
  739. * Querystrings for all methods
  740. * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised
  741. ``r.requests.get('hwe://blah'); r.raise_for_status()``
  742. 0.4.1 (2011-05-22)
  743. ++++++++++++++++++
  744. * Improved Redirection Handling
  745. * New 'allow_redirects' param for following non-GET/HEAD Redirects
  746. * Settings module refactoring
  747. 0.4.0 (2011-05-15)
  748. ++++++++++++++++++
  749. * Response.history: list of redirected responses
  750. * Case-Insensitive Header Dictionaries!
  751. * Unicode URLs
  752. 0.3.4 (2011-05-14)
  753. ++++++++++++++++++
  754. * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
  755. * Internal Refactor
  756. * Bytes data upload Bugfix
  757. 0.3.3 (2011-05-12)
  758. ++++++++++++++++++
  759. * Request timeouts
  760. * Unicode url-encoded data
  761. * Settings context manager and module
  762. 0.3.2 (2011-04-15)
  763. ++++++++++++++++++
  764. * Automatic Decompression of GZip Encoded Content
  765. * AutoAuth Support for Tupled HTTP Auth
  766. 0.3.1 (2011-04-01)
  767. ++++++++++++++++++
  768. * Cookie Changes
  769. * Response.read()
  770. * Poster fix
  771. 0.3.0 (2011-02-25)
  772. ++++++++++++++++++
  773. * Automatic Authentication API Change
  774. * Smarter Query URL Parameterization
  775. * Allow file uploads and POST data together
  776. * New Authentication Manager System
  777. - Simpler Basic HTTP System
  778. - Supports all build-in urllib2 Auths
  779. - Allows for custom Auth Handlers
  780. 0.2.4 (2011-02-19)
  781. ++++++++++++++++++
  782. * Python 2.5 Support
  783. * PyPy-c v1.4 Support
  784. * Auto-Authentication tests
  785. * Improved Request object constructor
  786. 0.2.3 (2011-02-15)
  787. ++++++++++++++++++
  788. * New HTTPHandling Methods
  789. - Response.__nonzero__ (false if bad HTTP Status)
  790. - Response.ok (True if expected HTTP Status)
  791. - Response.error (Logged HTTPError if bad HTTP Status)
  792. - Response.raise_for_status() (Raises stored HTTPError)
  793. 0.2.2 (2011-02-14)
  794. ++++++++++++++++++
  795. * Still handles request in the event of an HTTPError. (Issue #2)
  796. * Eventlet and Gevent Monkeypatch support.
  797. * Cookie Support (Issue #1)
  798. 0.2.1 (2011-02-14)
  799. ++++++++++++++++++
  800. * Added file attribute to POST and PUT requests for multipart-encode file uploads.
  801. * Added Request.url attribute for context and redirects
  802. 0.2.0 (2011-02-14)
  803. ++++++++++++++++++
  804. * Birth!
  805. 0.0.1 (2011-02-13)
  806. ++++++++++++++++++
  807. * Frustration
  808. * Conception