CHANGES.rst 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. Changes
  2. =======
  3. 1.22 (2017-07-20)
  4. -----------------
  5. * Fixed missing brackets in ``HTTP CONNECT`` when connecting to IPv6 address via
  6. IPv6 proxy. (Issue #1222)
  7. * Made the connection pool retry on ``SSLError``. The original ``SSLError``
  8. is available on ``MaxRetryError.reason``. (Issue #1112)
  9. * Drain and release connection before recursing on retry/redirect. Fixes
  10. deadlocks with a blocking connectionpool. (Issue #1167)
  11. * Fixed compatibility for cookiejar. (Issue #1229)
  12. * pyopenssl: Use vendored version of ``six``. (Issue #1231)
  13. 1.21.1 (2017-05-02)
  14. -------------------
  15. * Fixed SecureTransport issue that would cause long delays in response body
  16. delivery. (Pull #1154)
  17. * Fixed regression in 1.21 that threw exceptions when users passed the
  18. ``socket_options`` flag to the ``PoolManager``. (Issue #1165)
  19. * Fixed regression in 1.21 that threw exceptions when users passed the
  20. ``assert_hostname`` or ``assert_fingerprint`` flag to the ``PoolManager``.
  21. (Pull #1157)
  22. 1.21 (2017-04-25)
  23. -----------------
  24. * Improved performance of certain selector system calls on Python 3.5 and
  25. later. (Pull #1095)
  26. * Resolved issue where the PyOpenSSL backend would not wrap SysCallError
  27. exceptions appropriately when sending data. (Pull #1125)
  28. * Selectors now detects a monkey-patched select module after import for modules
  29. that patch the select module like eventlet, greenlet. (Pull #1128)
  30. * Reduced memory consumption when streaming zlib-compressed responses
  31. (as opposed to raw deflate streams). (Pull #1129)
  32. * Connection pools now use the entire request context when constructing the
  33. pool key. (Pull #1016)
  34. * ``PoolManager.connection_from_*`` methods now accept a new keyword argument,
  35. ``pool_kwargs``, which are merged with the existing ``connection_pool_kw``.
  36. (Pull #1016)
  37. * Add retry counter for ``status_forcelist``. (Issue #1147)
  38. * Added ``contrib`` module for using SecureTransport on macOS:
  39. ``urllib3.contrib.securetransport``. (Pull #1122)
  40. * urllib3 now only normalizes the case of ``http://`` and ``https://`` schemes:
  41. for schemes it does not recognise, it assumes they are case-sensitive and
  42. leaves them unchanged.
  43. (Issue #1080)
  44. 1.20 (2017-01-19)
  45. -----------------
  46. * Added support for waiting for I/O using selectors other than select,
  47. improving urllib3's behaviour with large numbers of concurrent connections.
  48. (Pull #1001)
  49. * Updated the date for the system clock check. (Issue #1005)
  50. * ConnectionPools now correctly consider hostnames to be case-insensitive.
  51. (Issue #1032)
  52. * Outdated versions of PyOpenSSL now cause the PyOpenSSL contrib module
  53. to fail when it is injected, rather than at first use. (Pull #1063)
  54. * Outdated versions of cryptography now cause the PyOpenSSL contrib module
  55. to fail when it is injected, rather than at first use. (Issue #1044)
  56. * Automatically attempt to rewind a file-like body object when a request is
  57. retried or redirected. (Pull #1039)
  58. * Fix some bugs that occur when modules incautiously patch the queue module.
  59. (Pull #1061)
  60. * Prevent retries from occuring on read timeouts for which the request method
  61. was not in the method whitelist. (Issue #1059)
  62. * Changed the PyOpenSSL contrib module to lazily load idna to avoid
  63. unnecessarily bloating the memory of programs that don't need it. (Pull
  64. #1076)
  65. * Add support for IPv6 literals with zone identifiers. (Pull #1013)
  66. * Added support for socks5h:// and socks4a:// schemes when working with SOCKS
  67. proxies, and controlled remote DNS appropriately. (Issue #1035)
  68. 1.19.1 (2016-11-16)
  69. -------------------
  70. * Fixed AppEngine import that didn't function on Python 3.5. (Pull #1025)
  71. 1.19 (2016-11-03)
  72. -----------------
  73. * urllib3 now respects Retry-After headers on 413, 429, and 503 responses when
  74. using the default retry logic. (Pull #955)
  75. * Remove markers from setup.py to assist ancient setuptools versions. (Issue
  76. #986)
  77. * Disallow superscripts and other integerish things in URL ports. (Issue #989)
  78. * Allow urllib3's HTTPResponse.stream() method to continue to work with
  79. non-httplib underlying FPs. (Pull #990)
  80. * Empty filenames in multipart headers are now emitted as such, rather than
  81. being supressed. (Issue #1015)
  82. * Prefer user-supplied Host headers on chunked uploads. (Issue #1009)
  83. 1.18.1 (2016-10-27)
  84. -------------------
  85. * CVE-2016-9015. Users who are using urllib3 version 1.17 or 1.18 along with
  86. PyOpenSSL injection and OpenSSL 1.1.0 *must* upgrade to this version. This
  87. release fixes a vulnerability whereby urllib3 in the above configuration
  88. would silently fail to validate TLS certificates due to erroneously setting
  89. invalid flags in OpenSSL's ``SSL_CTX_set_verify`` function. These erroneous
  90. flags do not cause a problem in OpenSSL versions before 1.1.0, which
  91. interprets the presence of any flag as requesting certificate validation.
  92. There is no PR for this patch, as it was prepared for simultaneous disclosure
  93. and release. The master branch received the same fix in PR #1010.
  94. 1.18 (2016-09-26)
  95. -----------------
  96. * Fixed incorrect message for IncompleteRead exception. (PR #973)
  97. * Accept ``iPAddress`` subject alternative name fields in TLS certificates.
  98. (Issue #258)
  99. * Fixed consistency of ``HTTPResponse.closed`` between Python 2 and 3.
  100. (Issue #977)
  101. * Fixed handling of wildcard certificates when using PyOpenSSL. (Issue #979)
  102. 1.17 (2016-09-06)
  103. -----------------
  104. * Accept ``SSLContext`` objects for use in SSL/TLS negotiation. (Issue #835)
  105. * ConnectionPool debug log now includes scheme, host, and port. (Issue #897)
  106. * Substantially refactored documentation. (Issue #887)
  107. * Used URLFetch default timeout on AppEngine, rather than hardcoding our own.
  108. (Issue #858)
  109. * Normalize the scheme and host in the URL parser (Issue #833)
  110. * ``HTTPResponse`` contains the last ``Retry`` object, which now also
  111. contains retries history. (Issue #848)
  112. * Timeout can no longer be set as boolean, and must be greater than zero.
  113. (PR #924)
  114. * Removed pyasn1 and ndg-httpsclient from dependencies used for PyOpenSSL. We
  115. now use cryptography and idna, both of which are already dependencies of
  116. PyOpenSSL. (PR #930)
  117. * Fixed infinite loop in ``stream`` when amt=None. (Issue #928)
  118. * Try to use the operating system's certificates when we are using an
  119. ``SSLContext``. (PR #941)
  120. * Updated cipher suite list to allow ChaCha20+Poly1305. AES-GCM is preferred to
  121. ChaCha20, but ChaCha20 is then preferred to everything else. (PR #947)
  122. * Updated cipher suite list to remove 3DES-based cipher suites. (PR #958)
  123. * Removed the cipher suite fallback to allow HIGH ciphers. (PR #958)
  124. * Implemented ``length_remaining`` to determine remaining content
  125. to be read. (PR #949)
  126. * Implemented ``enforce_content_length`` to enable exceptions when
  127. incomplete data chunks are received. (PR #949)
  128. * Dropped connection start, dropped connection reset, redirect, forced retry,
  129. and new HTTPS connection log levels to DEBUG, from INFO. (PR #967)
  130. 1.16 (2016-06-11)
  131. -----------------
  132. * Disable IPv6 DNS when IPv6 connections are not possible. (Issue #840)
  133. * Provide ``key_fn_by_scheme`` pool keying mechanism that can be
  134. overridden. (Issue #830)
  135. * Normalize scheme and host to lowercase for pool keys, and include
  136. ``source_address``. (Issue #830)
  137. * Cleaner exception chain in Python 3 for ``_make_request``.
  138. (Issue #861)
  139. * Fixed installing ``urllib3[socks]`` extra. (Issue #864)
  140. * Fixed signature of ``ConnectionPool.close`` so it can actually safely be
  141. called by subclasses. (Issue #873)
  142. * Retain ``release_conn`` state across retries. (Issues #651, #866)
  143. * Add customizable ``HTTPConnectionPool.ResponseCls``, which defaults to
  144. ``HTTPResponse`` but can be replaced with a subclass. (Issue #879)
  145. 1.15.1 (2016-04-11)
  146. -------------------
  147. * Fix packaging to include backports module. (Issue #841)
  148. 1.15 (2016-04-06)
  149. -----------------
  150. * Added Retry(raise_on_status=False). (Issue #720)
  151. * Always use setuptools, no more distutils fallback. (Issue #785)
  152. * Dropped support for Python 3.2. (Issue #786)
  153. * Chunked transfer encoding when requesting with ``chunked=True``.
  154. (Issue #790)
  155. * Fixed regression with IPv6 port parsing. (Issue #801)
  156. * Append SNIMissingWarning messages to allow users to specify it in
  157. the PYTHONWARNINGS environment variable. (Issue #816)
  158. * Handle unicode headers in Py2. (Issue #818)
  159. * Log certificate when there is a hostname mismatch. (Issue #820)
  160. * Preserve order of request/response headers. (Issue #821)
  161. 1.14 (2015-12-29)
  162. -----------------
  163. * contrib: SOCKS proxy support! (Issue #762)
  164. * Fixed AppEngine handling of transfer-encoding header and bug
  165. in Timeout defaults checking. (Issue #763)
  166. 1.13.1 (2015-12-18)
  167. -------------------
  168. * Fixed regression in IPv6 + SSL for match_hostname. (Issue #761)
  169. 1.13 (2015-12-14)
  170. -----------------
  171. * Fixed ``pip install urllib3[secure]`` on modern pip. (Issue #706)
  172. * pyopenssl: Fixed SSL3_WRITE_PENDING error. (Issue #717)
  173. * pyopenssl: Support for TLSv1.1 and TLSv1.2. (Issue #696)
  174. * Close connections more defensively on exception. (Issue #734)
  175. * Adjusted ``read_chunked`` to handle gzipped, chunk-encoded bodies without
  176. repeatedly flushing the decoder, to function better on Jython. (Issue #743)
  177. * Accept ``ca_cert_dir`` for SSL-related PoolManager configuration. (Issue #758)
  178. 1.12 (2015-09-03)
  179. -----------------
  180. * Rely on ``six`` for importing ``httplib`` to work around
  181. conflicts with other Python 3 shims. (Issue #688)
  182. * Add support for directories of certificate authorities, as supported by
  183. OpenSSL. (Issue #701)
  184. * New exception: ``NewConnectionError``, raised when we fail to establish
  185. a new connection, usually ``ECONNREFUSED`` socket error.
  186. 1.11 (2015-07-21)
  187. -----------------
  188. * When ``ca_certs`` is given, ``cert_reqs`` defaults to
  189. ``'CERT_REQUIRED'``. (Issue #650)
  190. * ``pip install urllib3[secure]`` will install Certifi and
  191. PyOpenSSL as dependencies. (Issue #678)
  192. * Made ``HTTPHeaderDict`` usable as a ``headers`` input value
  193. (Issues #632, #679)
  194. * Added `urllib3.contrib.appengine <https://urllib3.readthedocs.io/en/latest/contrib.html#google-app-engine>`_
  195. which has an ``AppEngineManager`` for using ``URLFetch`` in a
  196. Google AppEngine environment. (Issue #664)
  197. * Dev: Added test suite for AppEngine. (Issue #631)
  198. * Fix performance regression when using PyOpenSSL. (Issue #626)
  199. * Passing incorrect scheme (e.g. ``foo://``) will raise
  200. ``ValueError`` instead of ``AssertionError`` (backwards
  201. compatible for now, but please migrate). (Issue #640)
  202. * Fix pools not getting replenished when an error occurs during a
  203. request using ``release_conn=False``. (Issue #644)
  204. * Fix pool-default headers not applying for url-encoded requests
  205. like GET. (Issue #657)
  206. * log.warning in Python 3 when headers are skipped due to parsing
  207. errors. (Issue #642)
  208. * Close and discard connections if an error occurs during read.
  209. (Issue #660)
  210. * Fix host parsing for IPv6 proxies. (Issue #668)
  211. * Separate warning type SubjectAltNameWarning, now issued once
  212. per host. (Issue #671)
  213. * Fix ``httplib.IncompleteRead`` not getting converted to
  214. ``ProtocolError`` when using ``HTTPResponse.stream()``
  215. (Issue #674)
  216. 1.10.4 (2015-05-03)
  217. -------------------
  218. * Migrate tests to Tornado 4. (Issue #594)
  219. * Append default warning configuration rather than overwrite.
  220. (Issue #603)
  221. * Fix streaming decoding regression. (Issue #595)
  222. * Fix chunked requests losing state across keep-alive connections.
  223. (Issue #599)
  224. * Fix hanging when chunked HEAD response has no body. (Issue #605)
  225. 1.10.3 (2015-04-21)
  226. -------------------
  227. * Emit ``InsecurePlatformWarning`` when SSLContext object is missing.
  228. (Issue #558)
  229. * Fix regression of duplicate header keys being discarded.
  230. (Issue #563)
  231. * ``Response.stream()`` returns a generator for chunked responses.
  232. (Issue #560)
  233. * Set upper-bound timeout when waiting for a socket in PyOpenSSL.
  234. (Issue #585)
  235. * Work on platforms without `ssl` module for plain HTTP requests.
  236. (Issue #587)
  237. * Stop relying on the stdlib's default cipher list. (Issue #588)
  238. 1.10.2 (2015-02-25)
  239. -------------------
  240. * Fix file descriptor leakage on retries. (Issue #548)
  241. * Removed RC4 from default cipher list. (Issue #551)
  242. * Header performance improvements. (Issue #544)
  243. * Fix PoolManager not obeying redirect retry settings. (Issue #553)
  244. 1.10.1 (2015-02-10)
  245. -------------------
  246. * Pools can be used as context managers. (Issue #545)
  247. * Don't re-use connections which experienced an SSLError. (Issue #529)
  248. * Don't fail when gzip decoding an empty stream. (Issue #535)
  249. * Add sha256 support for fingerprint verification. (Issue #540)
  250. * Fixed handling of header values containing commas. (Issue #533)
  251. 1.10 (2014-12-14)
  252. -----------------
  253. * Disabled SSLv3. (Issue #473)
  254. * Add ``Url.url`` property to return the composed url string. (Issue #394)
  255. * Fixed PyOpenSSL + gevent ``WantWriteError``. (Issue #412)
  256. * ``MaxRetryError.reason`` will always be an exception, not string.
  257. (Issue #481)
  258. * Fixed SSL-related timeouts not being detected as timeouts. (Issue #492)
  259. * Py3: Use ``ssl.create_default_context()`` when available. (Issue #473)
  260. * Emit ``InsecureRequestWarning`` for *every* insecure HTTPS request.
  261. (Issue #496)
  262. * Emit ``SecurityWarning`` when certificate has no ``subjectAltName``.
  263. (Issue #499)
  264. * Close and discard sockets which experienced SSL-related errors.
  265. (Issue #501)
  266. * Handle ``body`` param in ``.request(...)``. (Issue #513)
  267. * Respect timeout with HTTPS proxy. (Issue #505)
  268. * PyOpenSSL: Handle ZeroReturnError exception. (Issue #520)
  269. 1.9.1 (2014-09-13)
  270. ------------------
  271. * Apply socket arguments before binding. (Issue #427)
  272. * More careful checks if fp-like object is closed. (Issue #435)
  273. * Fixed packaging issues of some development-related files not
  274. getting included. (Issue #440)
  275. * Allow performing *only* fingerprint verification. (Issue #444)
  276. * Emit ``SecurityWarning`` if system clock is waaay off. (Issue #445)
  277. * Fixed PyOpenSSL compatibility with PyPy. (Issue #450)
  278. * Fixed ``BrokenPipeError`` and ``ConnectionError`` handling in Py3.
  279. (Issue #443)
  280. 1.9 (2014-07-04)
  281. ----------------
  282. * Shuffled around development-related files. If you're maintaining a distro
  283. package of urllib3, you may need to tweak things. (Issue #415)
  284. * Unverified HTTPS requests will trigger a warning on the first request. See
  285. our new `security documentation
  286. <https://urllib3.readthedocs.io/en/latest/security.html>`_ for details.
  287. (Issue #426)
  288. * New retry logic and ``urllib3.util.retry.Retry`` configuration object.
  289. (Issue #326)
  290. * All raised exceptions should now wrapped in a
  291. ``urllib3.exceptions.HTTPException``-extending exception. (Issue #326)
  292. * All errors during a retry-enabled request should be wrapped in
  293. ``urllib3.exceptions.MaxRetryError``, including timeout-related exceptions
  294. which were previously exempt. Underlying error is accessible from the
  295. ``.reason`` propery. (Issue #326)
  296. * ``urllib3.exceptions.ConnectionError`` renamed to
  297. ``urllib3.exceptions.ProtocolError``. (Issue #326)
  298. * Errors during response read (such as IncompleteRead) are now wrapped in
  299. ``urllib3.exceptions.ProtocolError``. (Issue #418)
  300. * Requesting an empty host will raise ``urllib3.exceptions.LocationValueError``.
  301. (Issue #417)
  302. * Catch read timeouts over SSL connections as
  303. ``urllib3.exceptions.ReadTimeoutError``. (Issue #419)
  304. * Apply socket arguments before connecting. (Issue #427)
  305. 1.8.3 (2014-06-23)
  306. ------------------
  307. * Fix TLS verification when using a proxy in Python 3.4.1. (Issue #385)
  308. * Add ``disable_cache`` option to ``urllib3.util.make_headers``. (Issue #393)
  309. * Wrap ``socket.timeout`` exception with
  310. ``urllib3.exceptions.ReadTimeoutError``. (Issue #399)
  311. * Fixed proxy-related bug where connections were being reused incorrectly.
  312. (Issues #366, #369)
  313. * Added ``socket_options`` keyword parameter which allows to define
  314. ``setsockopt`` configuration of new sockets. (Issue #397)
  315. * Removed ``HTTPConnection.tcp_nodelay`` in favor of
  316. ``HTTPConnection.default_socket_options``. (Issue #397)
  317. * Fixed ``TypeError`` bug in Python 2.6.4. (Issue #411)
  318. 1.8.2 (2014-04-17)
  319. ------------------
  320. * Fix ``urllib3.util`` not being included in the package.
  321. 1.8.1 (2014-04-17)
  322. ------------------
  323. * Fix AppEngine bug of HTTPS requests going out as HTTP. (Issue #356)
  324. * Don't install ``dummyserver`` into ``site-packages`` as it's only needed
  325. for the test suite. (Issue #362)
  326. * Added support for specifying ``source_address``. (Issue #352)
  327. 1.8 (2014-03-04)
  328. ----------------
  329. * Improved url parsing in ``urllib3.util.parse_url`` (properly parse '@' in
  330. username, and blank ports like 'hostname:').
  331. * New ``urllib3.connection`` module which contains all the HTTPConnection
  332. objects.
  333. * Several ``urllib3.util.Timeout``-related fixes. Also changed constructor
  334. signature to a more sensible order. [Backwards incompatible]
  335. (Issues #252, #262, #263)
  336. * Use ``backports.ssl_match_hostname`` if it's installed. (Issue #274)
  337. * Added ``.tell()`` method to ``urllib3.response.HTTPResponse`` which
  338. returns the number of bytes read so far. (Issue #277)
  339. * Support for platforms without threading. (Issue #289)
  340. * Expand default-port comparison in ``HTTPConnectionPool.is_same_host``
  341. to allow a pool with no specified port to be considered equal to to an
  342. HTTP/HTTPS url with port 80/443 explicitly provided. (Issue #305)
  343. * Improved default SSL/TLS settings to avoid vulnerabilities.
  344. (Issue #309)
  345. * Fixed ``urllib3.poolmanager.ProxyManager`` not retrying on connect errors.
  346. (Issue #310)
  347. * Disable Nagle's Algorithm on the socket for non-proxies. A subset of requests
  348. will send the entire HTTP request ~200 milliseconds faster; however, some of
  349. the resulting TCP packets will be smaller. (Issue #254)
  350. * Increased maximum number of SubjectAltNames in ``urllib3.contrib.pyopenssl``
  351. from the default 64 to 1024 in a single certificate. (Issue #318)
  352. * Headers are now passed and stored as a custom
  353. ``urllib3.collections_.HTTPHeaderDict`` object rather than a plain ``dict``.
  354. (Issue #329, #333)
  355. * Headers no longer lose their case on Python 3. (Issue #236)
  356. * ``urllib3.contrib.pyopenssl`` now uses the operating system's default CA
  357. certificates on inject. (Issue #332)
  358. * Requests with ``retries=False`` will immediately raise any exceptions without
  359. wrapping them in ``MaxRetryError``. (Issue #348)
  360. * Fixed open socket leak with SSL-related failures. (Issue #344, #348)
  361. 1.7.1 (2013-09-25)
  362. ------------------
  363. * Added granular timeout support with new ``urllib3.util.Timeout`` class.
  364. (Issue #231)
  365. * Fixed Python 3.4 support. (Issue #238)
  366. 1.7 (2013-08-14)
  367. ----------------
  368. * More exceptions are now pickle-able, with tests. (Issue #174)
  369. * Fixed redirecting with relative URLs in Location header. (Issue #178)
  370. * Support for relative urls in ``Location: ...`` header. (Issue #179)
  371. * ``urllib3.response.HTTPResponse`` now inherits from ``io.IOBase`` for bonus
  372. file-like functionality. (Issue #187)
  373. * Passing ``assert_hostname=False`` when creating a HTTPSConnectionPool will
  374. skip hostname verification for SSL connections. (Issue #194)
  375. * New method ``urllib3.response.HTTPResponse.stream(...)`` which acts as a
  376. generator wrapped around ``.read(...)``. (Issue #198)
  377. * IPv6 url parsing enforces brackets around the hostname. (Issue #199)
  378. * Fixed thread race condition in
  379. ``urllib3.poolmanager.PoolManager.connection_from_host(...)`` (Issue #204)
  380. * ``ProxyManager`` requests now include non-default port in ``Host: ...``
  381. header. (Issue #217)
  382. * Added HTTPS proxy support in ``ProxyManager``. (Issue #170 #139)
  383. * New ``RequestField`` object can be passed to the ``fields=...`` param which
  384. can specify headers. (Issue #220)
  385. * Raise ``urllib3.exceptions.ProxyError`` when connecting to proxy fails.
  386. (Issue #221)
  387. * Use international headers when posting file names. (Issue #119)
  388. * Improved IPv6 support. (Issue #203)
  389. 1.6 (2013-04-25)
  390. ----------------
  391. * Contrib: Optional SNI support for Py2 using PyOpenSSL. (Issue #156)
  392. * ``ProxyManager`` automatically adds ``Host: ...`` header if not given.
  393. * Improved SSL-related code. ``cert_req`` now optionally takes a string like
  394. "REQUIRED" or "NONE". Same with ``ssl_version`` takes strings like "SSLv23"
  395. The string values reflect the suffix of the respective constant variable.
  396. (Issue #130)
  397. * Vendored ``socksipy`` now based on Anorov's fork which handles unexpectedly
  398. closed proxy connections and larger read buffers. (Issue #135)
  399. * Ensure the connection is closed if no data is received, fixes connection leak
  400. on some platforms. (Issue #133)
  401. * Added SNI support for SSL/TLS connections on Py32+. (Issue #89)
  402. * Tests fixed to be compatible with Py26 again. (Issue #125)
  403. * Added ability to choose SSL version by passing an ``ssl.PROTOCOL_*`` constant
  404. to the ``ssl_version`` parameter of ``HTTPSConnectionPool``. (Issue #109)
  405. * Allow an explicit content type to be specified when encoding file fields.
  406. (Issue #126)
  407. * Exceptions are now pickleable, with tests. (Issue #101)
  408. * Fixed default headers not getting passed in some cases. (Issue #99)
  409. * Treat "content-encoding" header value as case-insensitive, per RFC 2616
  410. Section 3.5. (Issue #110)
  411. * "Connection Refused" SocketErrors will get retried rather than raised.
  412. (Issue #92)
  413. * Updated vendored ``six``, no longer overrides the global ``six`` module
  414. namespace. (Issue #113)
  415. * ``urllib3.exceptions.MaxRetryError`` contains a ``reason`` property holding
  416. the exception that prompted the final retry. If ``reason is None`` then it
  417. was due to a redirect. (Issue #92, #114)
  418. * Fixed ``PoolManager.urlopen()`` from not redirecting more than once.
  419. (Issue #149)
  420. * Don't assume ``Content-Type: text/plain`` for multi-part encoding parameters
  421. that are not files. (Issue #111)
  422. * Pass `strict` param down to ``httplib.HTTPConnection``. (Issue #122)
  423. * Added mechanism to verify SSL certificates by fingerprint (md5, sha1) or
  424. against an arbitrary hostname (when connecting by IP or for misconfigured
  425. servers). (Issue #140)
  426. * Streaming decompression support. (Issue #159)
  427. 1.5 (2012-08-02)
  428. ----------------
  429. * Added ``urllib3.add_stderr_logger()`` for quickly enabling STDERR debug
  430. logging in urllib3.
  431. * Native full URL parsing (including auth, path, query, fragment) available in
  432. ``urllib3.util.parse_url(url)``.
  433. * Built-in redirect will switch method to 'GET' if status code is 303.
  434. (Issue #11)
  435. * ``urllib3.PoolManager`` strips the scheme and host before sending the request
  436. uri. (Issue #8)
  437. * New ``urllib3.exceptions.DecodeError`` exception for when automatic decoding,
  438. based on the Content-Type header, fails.
  439. * Fixed bug with pool depletion and leaking connections (Issue #76). Added
  440. explicit connection closing on pool eviction. Added
  441. ``urllib3.PoolManager.clear()``.
  442. * 99% -> 100% unit test coverage.
  443. 1.4 (2012-06-16)
  444. ----------------
  445. * Minor AppEngine-related fixes.
  446. * Switched from ``mimetools.choose_boundary`` to ``uuid.uuid4()``.
  447. * Improved url parsing. (Issue #73)
  448. * IPv6 url support. (Issue #72)
  449. 1.3 (2012-03-25)
  450. ----------------
  451. * Removed pre-1.0 deprecated API.
  452. * Refactored helpers into a ``urllib3.util`` submodule.
  453. * Fixed multipart encoding to support list-of-tuples for keys with multiple
  454. values. (Issue #48)
  455. * Fixed multiple Set-Cookie headers in response not getting merged properly in
  456. Python 3. (Issue #53)
  457. * AppEngine support with Py27. (Issue #61)
  458. * Minor ``encode_multipart_formdata`` fixes related to Python 3 strings vs
  459. bytes.
  460. 1.2.2 (2012-02-06)
  461. ------------------
  462. * Fixed packaging bug of not shipping ``test-requirements.txt``. (Issue #47)
  463. 1.2.1 (2012-02-05)
  464. ------------------
  465. * Fixed another bug related to when ``ssl`` module is not available. (Issue #41)
  466. * Location parsing errors now raise ``urllib3.exceptions.LocationParseError``
  467. which inherits from ``ValueError``.
  468. 1.2 (2012-01-29)
  469. ----------------
  470. * Added Python 3 support (tested on 3.2.2)
  471. * Dropped Python 2.5 support (tested on 2.6.7, 2.7.2)
  472. * Use ``select.poll`` instead of ``select.select`` for platforms that support
  473. it.
  474. * Use ``Queue.LifoQueue`` instead of ``Queue.Queue`` for more aggressive
  475. connection reusing. Configurable by overriding ``ConnectionPool.QueueCls``.
  476. * Fixed ``ImportError`` during install when ``ssl`` module is not available.
  477. (Issue #41)
  478. * Fixed ``PoolManager`` redirects between schemes (such as HTTP -> HTTPS) not
  479. completing properly. (Issue #28, uncovered by Issue #10 in v1.1)
  480. * Ported ``dummyserver`` to use ``tornado`` instead of ``webob`` +
  481. ``eventlet``. Removed extraneous unsupported dummyserver testing backends.
  482. Added socket-level tests.
  483. * More tests. Achievement Unlocked: 99% Coverage.
  484. 1.1 (2012-01-07)
  485. ----------------
  486. * Refactored ``dummyserver`` to its own root namespace module (used for
  487. testing).
  488. * Added hostname verification for ``VerifiedHTTPSConnection`` by vendoring in
  489. Py32's ``ssl_match_hostname``. (Issue #25)
  490. * Fixed cross-host HTTP redirects when using ``PoolManager``. (Issue #10)
  491. * Fixed ``decode_content`` being ignored when set through ``urlopen``. (Issue
  492. #27)
  493. * Fixed timeout-related bugs. (Issues #17, #23)
  494. 1.0.2 (2011-11-04)
  495. ------------------
  496. * Fixed typo in ``VerifiedHTTPSConnection`` which would only present as a bug if
  497. you're using the object manually. (Thanks pyos)
  498. * Made RecentlyUsedContainer (and consequently PoolManager) more thread-safe by
  499. wrapping the access log in a mutex. (Thanks @christer)
  500. * Made RecentlyUsedContainer more dict-like (corrected ``__delitem__`` and
  501. ``__getitem__`` behaviour), with tests. Shouldn't affect core urllib3 code.
  502. 1.0.1 (2011-10-10)
  503. ------------------
  504. * Fixed a bug where the same connection would get returned into the pool twice,
  505. causing extraneous "HttpConnectionPool is full" log warnings.
  506. 1.0 (2011-10-08)
  507. ----------------
  508. * Added ``PoolManager`` with LRU expiration of connections (tested and
  509. documented).
  510. * Added ``ProxyManager`` (needs tests, docs, and confirmation that it works
  511. with HTTPS proxies).
  512. * Added optional partial-read support for responses when
  513. ``preload_content=False``. You can now make requests and just read the headers
  514. without loading the content.
  515. * Made response decoding optional (default on, same as before).
  516. * Added optional explicit boundary string for ``encode_multipart_formdata``.
  517. * Convenience request methods are now inherited from ``RequestMethods``. Old
  518. helpers like ``get_url`` and ``post_url`` should be abandoned in favour of
  519. the new ``request(method, url, ...)``.
  520. * Refactored code to be even more decoupled, reusable, and extendable.
  521. * License header added to ``.py`` files.
  522. * Embiggened the documentation: Lots of Sphinx-friendly docstrings in the code
  523. and docs in ``docs/`` and on urllib3.readthedocs.org.
  524. * Embettered all the things!
  525. * Started writing this file.
  526. 0.4.1 (2011-07-17)
  527. ------------------
  528. * Minor bug fixes, code cleanup.
  529. 0.4 (2011-03-01)
  530. ----------------
  531. * Better unicode support.
  532. * Added ``VerifiedHTTPSConnection``.
  533. * Added ``NTLMConnectionPool`` in contrib.
  534. * Minor improvements.
  535. 0.3.1 (2010-07-13)
  536. ------------------
  537. * Added ``assert_host_name`` optional parameter. Now compatible with proxies.
  538. 0.3 (2009-12-10)
  539. ----------------
  540. * Added HTTPS support.
  541. * Minor bug fixes.
  542. * Refactored, broken backwards compatibility with 0.2.
  543. * API to be treated as stable from this version forward.
  544. 0.2 (2008-11-17)
  545. ----------------
  546. * Added unit tests.
  547. * Bug fixes.
  548. 0.1 (2008-11-16)
  549. ----------------
  550. * First release.