Joe Gregorio | ed72cba | 2012-08-28 12:19:28 -0400 | [diff] [blame^] | 1 | 0.7.5 |
| 2 | Keys are lowercase in a Response object, regardless of how Response object is constructed. |
| 3 | Add control so that Authorization: headers aren't forwarded on a 3xx response by default. |
| 4 | Set the reason correctly when running on App Engine. Patch from Alain Vongsouvanh. Reviewed in http://codereview.appspot.com/6422051/ |
| 5 | Fix proxy socks for SSL connections. Fixes issue #199. |
| 6 | You can now set httplib2.RETRIES to the number of retries before a request |
| 7 | is considered to fail It is set to a default of 2 to mimic the traditional |
| 8 | behavior of httplib2. |
| 9 | |
| 10 | The following issues have been addressed: |
| 11 | |
| 12 | 223 HEAD requests fail calling the close() method of ResponseDict instance. |
| 13 | 222 Can't disable cert validation in appengine |
| 14 | 204 Credentials can leak in HTTP redirects |
| 15 | 210 Different API between Python 2 and Python 3 version breaks wsgi_intercept |
| 16 | 214 ValueError on malformated cache entries |
| 17 | 204 Credentials can leak in HTTP redirects |
| 18 | |
| 19 | |
Joe Gregorio | b850bd0 | 2012-03-02 08:37:22 -0800 | [diff] [blame] | 20 | 0.7.3 |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 21 | ProxyInfo objects now can construct themselves from environment |
| 22 | variables commonly-used in Unix environments. By default, the Http |
| 23 | class will construct a ProxyInfo instance based on these environment |
| 24 | variables. To achieve the previous behavior, where environment |
| 25 | variables are ignored, pass proxy_info=None to Http(). |
| 26 | |
| 27 | The following issues have been addressed: |
| 28 | |
| 29 | Issue 159: automatic detection of proxy configuration. |
Joe Gregorio | b850bd0 | 2012-03-02 08:37:22 -0800 | [diff] [blame] | 30 | Issue 179: Allow unicode in proxy hostname. |
| 31 | Issue 194: Added support for setuptools. |
| 32 | Fixes for HTTP CONNECT proxies. |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 33 | |
Joe Gregorio | b2cfdf6 | 2011-06-16 10:11:13 -0400 | [diff] [blame] | 34 | 0.7.1 |
| 35 | Fix failure to install cacerts.txt for 2.x installs. |
| 36 | |
Joe Gregorio | b0c82ca | 2011-06-13 15:13:11 -0400 | [diff] [blame] | 37 | 0.7.0 |
| 38 | The two major changes in this release are SSL Certificate |
| 39 | checking and App Engine support. By default the certificates |
| 40 | of an HTTPS connection are checked, but that can be disabled |
| 41 | via disable_ssl_certificate_validation. The second change |
| 42 | is that on App Engine there is a new connection object |
| 43 | that utilizes the urlfetch capabilities on App Engine, including |
| 44 | setting timeouts and validating certificates. |
| 45 | |
| 46 | The following issues have been addressed: |
| 47 | |
| 48 | Fixes issue 72. Always lowercase authorization header. |
| 49 | Fix issue 47. Redirects that become a GET should not have a body. |
| 50 | Fixes issue 19. Set Content-location on redirected HEAD requests |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 51 | Fixes issue 139. Redirect with a GET on 302 regardless of the originating method. |
| 52 | Fixes issue 138. Handle unicode in headers when writing and retrieving cache entries. Who says headers have to be ASCII! |
Joe Gregorio | b0c82ca | 2011-06-13 15:13:11 -0400 | [diff] [blame] | 53 | Add certificate validation. Work initially started by Christoph Kern. |
| 54 | Set a version number. Fixes issue # 135. |
| 55 | Sync to latest version of socks.py |
| 56 | Add gzip to the user-agent, in case we are making a request to an app engine project: http://code.google.com/appengine/kb/general.html#compression |
| 57 | Uses a custom httplib shim on App Engine to wrap urlfetch, as opposed |
| 58 | Add default support for optimistic concurrency on PATCH requests |
| 59 | Fixes issue 126. IPv6 under various conditions would fail. |
| 60 | Fixes issue 131. Handle socket.timeout's that occur during send. |
| 61 | proxy support: degrade gracefully when socket.socket is unavailable |
| 62 | |
| 63 | |
Joe Gregorio | f311655 | 2009-12-28 13:02:42 -0500 | [diff] [blame] | 64 | 0.6.0 |
| 65 | |
| 66 | The following issues have been addressed: |
| 67 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 68 | #51 - Failure to handle server legitimately closing connection before request body is fully sent |
| 69 | #77 - Duplicated caching test |
Joe Gregorio | f311655 | 2009-12-28 13:02:42 -0500 | [diff] [blame] | 70 | #65 - Transform _normalize_headers into a method of Http class |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 71 | #45 - Vary header |
| 72 | #73 - All files in Mercurial are executable |
| 73 | #81 - Have a useful .hgignore |
| 74 | #78 - Add release tags to the Mercurial repository |
| 75 | #67 - HEAD requests cause next request to be retried |
Joe Gregorio | f311655 | 2009-12-28 13:02:42 -0500 | [diff] [blame] | 76 | |
| 77 | Mostly bug fixes, the big enhancement is the addition of proper Vary: header |
| 78 | handling. Thanks to Chris Dent for that change. |
| 79 | |
| 80 | The other big change is the build process for distributions so that both python2 and python3 |
| 81 | are included in the same .tar.gz/.zip file. |
| 82 | |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 83 | 0.5.0 |
| 84 | |
| 85 | Added Python 3 support |
| 86 | |
| 87 | Fixed the following bugs: |
| 88 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 89 | #12 - Cache-Control: only-if-cached incorrectly does request if item not in cache |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 90 | #39 - Deprecation warnings in Python 2.6 |
Joe Gregorio | 891439e | 2009-07-28 10:52:36 -0400 | [diff] [blame] | 91 | #54 - Http.request fails accesing Google account via http proxy |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 92 | #56 - Block on response.read() for HEAD requests. |
| 93 | #57 - Timeout ignore for Python 2.6 |
| 94 | #58 - Fixed parsing of Cache-Control: header to make it more robust |
| 95 | |
Joe Gregorio | 891439e | 2009-07-28 10:52:36 -0400 | [diff] [blame] | 96 | Also fixed a deprecation warning that appeared between Python 3.0 and 3.1. |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 97 | |
joe.gregorio | 5fcc199 | 2007-10-23 15:12:17 +0000 | [diff] [blame] | 98 | 0.4.0 |
jcgregorio | 1464437 | 2007-07-30 14:13:37 +0000 | [diff] [blame] | 99 | |
joe.gregorio | 5fcc199 | 2007-10-23 15:12:17 +0000 | [diff] [blame] | 100 | Added support for proxies if the Socksipy module is installed. |
| 101 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 102 | Fixed bug with some HEAD responses having content-length set to |
joe.gregorio | 5fcc199 | 2007-10-23 15:12:17 +0000 | [diff] [blame] | 103 | zero incorrectly. |
| 104 | |
| 105 | Fixed most except's to catch a specific exception. |
jcgregorio | 1464437 | 2007-07-30 14:13:37 +0000 | [diff] [blame] | 106 | |
| 107 | Added 'connection_type' parameter to Http.request(). |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 108 | |
joe.gregorio | 5fcc199 | 2007-10-23 15:12:17 +0000 | [diff] [blame] | 109 | The default for 'force_exception_to_status_code' was changed to False. Defaulting |
| 110 | to True was causing quite a bit of confusion. |
jcgregorio | 1464437 | 2007-07-30 14:13:37 +0000 | [diff] [blame] | 111 | |
| 112 | |
jcgregorio | 463a8db | 2007-03-09 03:27:14 +0000 | [diff] [blame] | 113 | 0.3.0 |
| 114 | Calling Http.request() with a relative URI, as opposed to an absolute URI, |
| 115 | will now throw a specific exception. |
| 116 | |
| 117 | Http() now has an additional optional parameter for the socket timeout. |
| 118 | |
| 119 | Exceptions can now be forced into responses. That is, instead of |
| 120 | throwing an exception, a good httlib2.Response object is returned |
| 121 | that describe the error with an appropriate status code. |
| 122 | |
| 123 | Many improvements to the file cache: |
| 124 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 125 | 1. The names in the cache are now much less |
jcgregorio | 463a8db | 2007-03-09 03:27:14 +0000 | [diff] [blame] | 126 | opaque, which should help with debugging. |
| 127 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 128 | 2. The disk cache is now Apache mod_asis compatible. |
| 129 | |
jcgregorio | 463a8db | 2007-03-09 03:27:14 +0000 | [diff] [blame] | 130 | 3. A Content-Location: header is supplied and stored in the |
| 131 | cache which points to the original requested URI. |
| 132 | |
| 133 | User supplied If-* headers now override httplib2 supplied |
| 134 | versions. |
| 135 | |
| 136 | IRIs are now fully supported. Note that they MUST be passed in |
| 137 | as unicode objects. |
| 138 | |
| 139 | Http.add_credentials() now takes an optional domain to restrict |
| 140 | the credentials to being only used on that domain. |
| 141 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 142 | Added Http.add_certificate() which allows setting |
jcgregorio | 463a8db | 2007-03-09 03:27:14 +0000 | [diff] [blame] | 143 | a key and cert for SSL connnections. |
| 144 | |
| 145 | Many other bugs fixed. |
| 146 | |
| 147 | |
jcgregorio | a0713ab | 2006-07-01 05:21:34 +0000 | [diff] [blame] | 148 | 0.2.0 |
| 149 | Added support for Google Auth. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 150 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 151 | Added experimental support for HMACDigest. |
jcgregorio | a0713ab | 2006-07-01 05:21:34 +0000 | [diff] [blame] | 152 | |
jcgregorio | 9208892 | 2006-07-01 05:53:21 +0000 | [diff] [blame] | 153 | Added support for a pluggable caching system. Now supports |
| 154 | the old system of using the file system and now memcached. |
| 155 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 156 | Added httplib2.debuglevel which turns on debugging. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 157 | |
jcgregorio | 9208892 | 2006-07-01 05:53:21 +0000 | [diff] [blame] | 158 | Change Response._previous to Response.previous. |
| 159 | |
| 160 | Addded Http.follow_all_redirects which forces |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 161 | httplib2 to follow all redirects, as opposed to |
jcgregorio | 9208892 | 2006-07-01 05:53:21 +0000 | [diff] [blame] | 162 | following only the safe redirects. This makes the |
| 163 | GData protocol easier to use. |
| 164 | |
| 165 | All known bugs fixed to date. |
| 166 | |
jcgregorio | 8421f27 | 2006-02-14 18:19:51 +0000 | [diff] [blame] | 167 | 0.1.1 |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 168 | |
jcgregorio | 4177ca1 | 2006-02-16 10:50:58 +0000 | [diff] [blame] | 169 | Fixed several bugs raised by James Antill: |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 170 | 1. HEAD didn't get an Accept: header added like GET. |
| 171 | 2. HEAD requests did not use the cache. |
| 172 | 3. GET requests with Range: headers would erroneously return a full cached response. |
jcgregorio | 8421f27 | 2006-02-14 18:19:51 +0000 | [diff] [blame] | 173 | 4. Subsequent requests to resources that had timed out would raise an exception. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 174 | And one feature request for 'method' to default to GET. |
| 175 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 176 | Xavier Verges Farrero supplied what I needed to make the |
jcgregorio | 4177ca1 | 2006-02-16 10:50:58 +0000 | [diff] [blame] | 177 | library work with Python 2.3. |
jcgregorio | 8421f27 | 2006-02-14 18:19:51 +0000 | [diff] [blame] | 178 | |
jcgregorio | 1eed40f | 2006-02-15 18:56:46 +0000 | [diff] [blame] | 179 | I added distutils based setup.py. |
| 180 | |
Jason R. Coombs | 4384089 | 2011-08-09 10:30:46 -0400 | [diff] [blame] | 181 | 0.1 Rev 86 |
| 182 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 183 | Initial Release |
| 184 | |