Chase Sterling [Thu, 2 May 2013 16:46:59 +0000 (12:46 -0400)]
Refactor merge_kwargs for clarity and to fix a few bugs
Kenneth Reitz [Mon, 20 May 2013 20:10:43 +0000 (16:10 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 20 May 2013 20:10:23 +0000 (16:10 -0400)]
v1.2.1
Kenneth Reitz [Mon, 20 May 2013 20:05:02 +0000 (13:05 -0700)]
Merge pull request #1356 from Zoramite/ConnectionPoolArgs
Adding an argument to the adapter for passing a block argument
Kenneth Reitz [Mon, 20 May 2013 20:04:08 +0000 (13:04 -0700)]
Merge pull request #1361 from Lukasa/1360
Always percent-encode location headers.
Kenneth Reitz [Mon, 20 May 2013 19:57:38 +0000 (12:57 -0700)]
Merge pull request #1370 from sigmavirus24/origin_req_host
Add an extra property for Python 3.3
Ian Cordasco [Mon, 20 May 2013 14:58:03 +0000 (10:58 -0400)]
Attempt a fix for @michaelhelmick
Kenneth Reitz [Fri, 17 May 2013 07:31:11 +0000 (09:31 +0200)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Fri, 17 May 2013 07:31:01 +0000 (09:31 +0200)]
download image!
Kenneth Reitz [Fri, 17 May 2013 06:23:04 +0000 (23:23 -0700)]
Merge pull request #1363 from dave-shawley/master
Fix for #1362
Dave Shawley [Thu, 16 May 2013 15:22:35 +0000 (11:22 -0400)]
Fix for #1362.
`PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the
URLs entire `netloc`. It should only be encoding the hostname portion
of the URL. IDNA encoding was limiting the user info, host, and port
segments to be a maximum of 63 characters which causes problems for
all by the most trivial user + password combinations.
- Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with
`urllib3` equivalent.
- Modified IDNA encoding section so that it only encodes the host
portion of the URL.
Cory Benfield [Thu, 16 May 2013 10:58:18 +0000 (11:58 +0100)]
Always percent-encode location headers.
Kenneth Reitz [Wed, 15 May 2013 16:43:57 +0000 (09:43 -0700)]
Merge pull request #1327 from ambv/adapter_order
Fixes #1320: transport adapters stored in ordered form
Łukasz Langa [Wed, 15 May 2013 11:34:09 +0000 (13:34 +0200)]
Fixes #1320: transport adapters stored in ordered form
Randy Merrill [Sun, 12 May 2013 01:30:31 +0000 (18:30 -0700)]
Adding the _pool_bloc to the list of attrs.
Randy Merrill [Sun, 12 May 2013 01:13:08 +0000 (18:13 -0700)]
Fixing the call to init_poolmanagers to correctly unpickle the adapter.
Randy Merrill [Sun, 12 May 2013 01:04:43 +0000 (18:04 -0700)]
Moving the order of the arguments in the init to not interfere with existing usage.
Randy Merrill [Sat, 11 May 2013 06:46:54 +0000 (23:46 -0700)]
Adding an argument to the adapter for passing a block argument to the connection pool.
This allows for blocking when using threading to prevent the pool from creating more connections that the max-size allows.
Specifically was seeing the following errors without the block=True:
WARNING:requests.packages.urllib3.connectionpool:HttpConnectionPool is full, discarding connection: www.example.com
Kenneth Reitz [Thu, 9 May 2013 08:03:49 +0000 (01:03 -0700)]
Merge pull request #1355 from sigmavirus24/fix_links
Prevent a KeyError when there's no link headers
Ian Cordasco [Thu, 9 May 2013 03:26:49 +0000 (23:26 -0400)]
Prevent a KeyError when there's no link headers
Kenneth Reitz [Tue, 7 May 2013 17:01:32 +0000 (10:01 -0700)]
Merge pull request #1352 from nicoddemus/docs-link-on-readme
Adding link to documentation in README.rst
Kenneth Reitz [Tue, 7 May 2013 17:01:18 +0000 (10:01 -0700)]
Merge pull request #1342 from mexicat/master
Fixed example in authentication docs
Bruno Oliveira [Tue, 7 May 2013 00:40:13 +0000 (21:40 -0300)]
Adding link to documentation in README.rst
Just adding a link to the documentation at python-requests.org
Kenneth Reitz [Sat, 4 May 2013 20:11:46 +0000 (13:11 -0700)]
Merge pull request #1347 from hobarrera/master
Issue #749: Add optional SNI support for python2.
Hugo Osvaldo Barrera [Fri, 3 May 2013 23:55:48 +0000 (20:55 -0300)]
Issue #749: Add optional SNI support for python2.
SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.
giacomo [Thu, 2 May 2013 15:16:19 +0000 (18:16 +0300)]
Fixed example in authentication docs
Kenneth Reitz [Wed, 1 May 2013 18:40:02 +0000 (11:40 -0700)]
Merge pull request #1341 from cdunklau/docstring_test_1329
Minor update to tests, added docstrings
Colin Dunklau [Wed, 1 May 2013 17:48:21 +0000 (12:48 -0500)]
Minor update to tests, added docstrings
Requested by @sigmavirus24.
Kenneth Reitz [Wed, 1 May 2013 17:29:40 +0000 (10:29 -0700)]
Merge pull request #1314 from duailibe/master
Fix small typo in the Support docs
Kenneth Reitz [Wed, 1 May 2013 17:28:18 +0000 (10:28 -0700)]
Merge pull request #1337 from amercader/master
Fix minor issues on the API docs
Kenneth Reitz [Wed, 1 May 2013 17:27:58 +0000 (10:27 -0700)]
Merge pull request #1339 from cdunklau/case_insensitive_headers_cleanup
Rewrite CaseInsensitiveDict to work correctly/sanely
Kenneth Reitz [Wed, 1 May 2013 17:27:02 +0000 (10:27 -0700)]
Merge pull request #1340 from ambv/tox_ini
Remove 3.1 and 3.2 from setup.py, add tox.ini to simplify testing on multiple versions
Łukasz Langa [Wed, 1 May 2013 16:30:46 +0000 (18:30 +0200)]
Remove Python 3.1 and 3.2 from the trove classifiers in setup.py
Colin Dunklau [Tue, 30 Apr 2013 19:52:27 +0000 (14:52 -0500)]
Rewrite CaseInsensitiveDict to work correctly/sanely
Fixes #649 and #1329 by making Session.headers a CaseInsensitiveDict,
and fixing the implementation of CID. Credit for the brilliant idea
to map `lowercased_key -> (cased_key, mapped_value)` goes to
@gazpachoking, thanks a bunch.
Changes from original implementation of CaseInsensitiveDict:
1. CID is rewritten as a subclass of `collections.MutableMapping`.
2. CID remembers the case of the last-set key, but `__setitem__`
and `__delitem__` will handle keys without respect to case.
3. CID returns the key case as remembered for the `keys`, `items`,
and `__iter__` methods.
4. Query operations (`__getitem__` and `__contains__`) are done in
a case-insensitive manner: `cid['foo']` and `cid['FOO']` will
return the same value.
5. The constructor as well as `update` and `__eq__` have undefined
behavior when given multiple keys that have the same `lower()`.
6. The new method `lower_items` is like `iteritems`, but keys are
all lowercased.
7. CID raises `KeyError` for `__getitem__` as normal dicts do. The
old implementation returned
6. The `__repr__` now makes it obvious that it's not a normal dict.
See PR #1333 for the discussions that lead up to this implementation
amercader [Tue, 30 Apr 2013 14:15:56 +0000 (16:15 +0200)]
Fix API documentation issues
* 'Cookies' and 'Encodings' sections were not built because the
reference to the functions was wrong.
* 'Exceptions' section had a wrong anchor link ('module-requests', same
one as the main heading).
* Remove 'decode_gzip' function, which is no longer present.
Kenneth Reitz [Sun, 28 Apr 2013 23:58:08 +0000 (16:58 -0700)]
Merge pull request #1332 from bboe/urllib3
Update urllib3 to
59de03e6163c6928dc01832ed6e48e9f6c34c795.
Bryce Boe [Sat, 27 Apr 2013 19:34:08 +0000 (12:34 -0700)]
Update urllib3 to
59de03e6163c6928dc01832ed6e48e9f6c34c795.
This update includes two fixes:
* https://github.com/shazow/urllib3/issues/149
* https://github.com/shazow/urllib3/issues/174
Kenneth Reitz [Sat, 27 Apr 2013 11:53:37 +0000 (04:53 -0700)]
Merge pull request #1330 from Kwpolska/patch-1
Fixing a tiny typo, noticed while working on the Polish translation
Chris Warrick [Sat, 27 Apr 2013 11:52:35 +0000 (14:52 +0300)]
A tiny typo, noticed while working on the Polish translation.
Kenneth Reitz [Fri, 26 Apr 2013 07:02:28 +0000 (00:02 -0700)]
Merge pull request #1328 from gazpachoking/session_cj_fix
Session CookieJar fix
Chase Sterling [Fri, 26 Apr 2013 03:15:50 +0000 (23:15 -0400)]
Fix session CookieJars without breaking more stuff this time
Chase Sterling [Fri, 26 Apr 2013 03:11:43 +0000 (23:11 -0400)]
Add another session cookie test
Chase Sterling [Fri, 26 Apr 2013 02:40:24 +0000 (22:40 -0400)]
Fix cookielib import
Chase Sterling [Fri, 26 Apr 2013 02:34:51 +0000 (22:34 -0400)]
Fix crash when session.cookies was not a RequestsCookieJar
Chase Sterling [Fri, 26 Apr 2013 02:32:03 +0000 (22:32 -0400)]
Add test for session cookiejars other than RequestsCookieJar
Kenneth Reitz [Sat, 20 Apr 2013 04:22:13 +0000 (00:22 -0400)]
milla
Kenneth Reitz [Sat, 20 Apr 2013 04:18:33 +0000 (00:18 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Sat, 20 Apr 2013 04:18:27 +0000 (00:18 -0400)]
pt
Lucas Duailibe [Thu, 18 Apr 2013 23:59:17 +0000 (20:59 -0300)]
Fix small typo in the Support docs
Kenneth Reitz [Wed, 17 Apr 2013 19:39:03 +0000 (12:39 -0700)]
Merge pull request #1313 from iurisilvio/fix_max_redirects_docs
Fix max_redirects docs issue #1301
Iuri de Silvio [Wed, 17 Apr 2013 19:27:06 +0000 (12:27 -0700)]
Fix max_redirects docs issue #1301
Kenneth Reitz [Tue, 16 Apr 2013 19:55:58 +0000 (12:55 -0700)]
Merge pull request #1279 from jemerick/unicode_multipart_post
Unicode strings in multipart post requests
Kenneth Reitz [Tue, 16 Apr 2013 02:47:20 +0000 (22:47 -0400)]
support for draft-tbray-http-legally-restricted-status-02
http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat
us/?include_text=1
Kenneth Reitz [Mon, 15 Apr 2013 07:22:56 +0000 (03:22 -0400)]
translations
Kenneth Reitz [Mon, 15 Apr 2013 07:22:48 +0000 (03:22 -0400)]
Translatoins
Kenneth Reitz [Mon, 15 Apr 2013 07:21:40 +0000 (03:21 -0400)]
Merge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 15 Apr 2013 07:21:32 +0000 (03:21 -0400)]
translations
Kenneth Reitz [Sun, 14 Apr 2013 03:28:43 +0000 (20:28 -0700)]
Merge pull request #1242 from oviboy/master
HTTP Digest Auth case insensitive replacement of "Digest "
Kenneth Reitz [Sun, 14 Apr 2013 03:27:46 +0000 (20:27 -0700)]
Merge pull request #1299 from schlamar/fix-decompression
Use streaming decompression feature of urllib3.
Kenneth Reitz [Sun, 14 Apr 2013 03:25:47 +0000 (20:25 -0700)]
Merge pull request #1302 from ssbarnea/master
Documents the actual logging methods #1297
Kenneth Reitz [Sat, 13 Apr 2013 19:26:49 +0000 (15:26 -0400)]
switch streaming requests to httpbin
Kenneth Reitz [Sat, 13 Apr 2013 19:24:21 +0000 (12:24 -0700)]
Merge pull request #1305 from michaelhelmick/patch-1
Fix Advanced docs Twitter Streaming example
Kenneth Reitz [Sat, 13 Apr 2013 19:05:13 +0000 (12:05 -0700)]
Merge pull request #1309 from toastdriven/better-max-retries
Changed HTTPAdapter to allow max retries to be specified when initializing.
Kenneth Reitz [Sat, 13 Apr 2013 19:02:29 +0000 (12:02 -0700)]
Merge pull request #1311 from sigmavirus24/fix1303
Change the method when it isn't already GET/HEAD
Ian Cordasco [Sat, 13 Apr 2013 16:30:05 +0000 (12:30 -0400)]
Change the method when it isn't already GET/HEAD
For some reason it was only change the method when a POST was being made. This
is almost certainly my fault.
Fixes #1303
Daniel Lindsley [Fri, 12 Apr 2013 23:40:39 +0000 (16:40 -0700)]
Changed HTTPAdapter to allow max retries to be specified when initializing.
Mike Helmick [Thu, 11 Apr 2013 03:49:27 +0000 (00:49 -0300)]
Fix Advanced docs Twitter Streaming example
Twitter API v1.1 Streaming now requires OAuth Authentication rather than XAuth.
I believe v1 is being blacked out sometime at the beginning of May.
Kenneth Reitz [Thu, 11 Apr 2013 16:04:07 +0000 (09:04 -0700)]
Merge pull request #1306 from pombredanne/patch-1
Updated NOTICE copyright from 2022 to 2012
pombredanne [Thu, 11 Apr 2013 14:08:27 +0000 (17:08 +0300)]
Updated NOTICE copyright from 2022 to 2012
Which is likely what you meant, eh?
Sorin Sbarnea [Wed, 10 Apr 2013 15:46:05 +0000 (16:46 +0100)]
Updated documentation indicating that logging is done via requests.packages.urllib3 instead of requests.
modified: docs/api.rst
Sorin Sbarnea [Wed, 10 Apr 2013 15:15:28 +0000 (16:15 +0100)]
* Documented the logging, requested in #1297
* Added build directory and *.egg to .gitignore
* Added sphinx as setup requirement in order to be able to build documentation with `pyhton setup.py build_sphinx`
modified: .gitignore
modified: docs/api.rst
modified: setup.py
schlamar [Wed, 10 Apr 2013 06:20:34 +0000 (08:20 +0200)]
Fix test with StringIO.
schlamar [Wed, 10 Apr 2013 06:08:33 +0000 (08:08 +0200)]
Use streaming decompression feature of urllib3.
schlamar [Wed, 10 Apr 2013 06:00:36 +0000 (08:00 +0200)]
Update urllib3 to 71f84f9.
Kenneth Reitz [Tue, 9 Apr 2013 20:17:19 +0000 (13:17 -0700)]
Merge pull request #1298 from Lukasa/adapter_doc
Transport Adapter Docs
Cory Benfield [Tue, 9 Apr 2013 19:58:59 +0000 (20:58 +0100)]
Shell of Transport Adapter documentation.
Cory Benfield [Tue, 9 Apr 2013 18:54:47 +0000 (19:54 +0100)]
Add HTTPAdapter to API docs.
Kenneth Reitz [Mon, 8 Apr 2013 18:01:36 +0000 (11:01 -0700)]
Merge pull request #1296 from sursh/master
Add helpful error message to r.json() method
Sasha Laundy [Mon, 8 Apr 2013 17:03:13 +0000 (13:03 -0400)]
Make json error message more specific
sursh [Mon, 8 Apr 2013 16:01:02 +0000 (13:01 -0300)]
Fix markdown
sursh [Mon, 8 Apr 2013 16:00:27 +0000 (13:00 -0300)]
Make json error on empty response more specific
Kenneth Reitz [Sun, 7 Apr 2013 00:27:23 +0000 (17:27 -0700)]
Merge pull request #1295 from sigmavirus24/issue1293
Fix #1293
Ian Cordasco [Sat, 6 Apr 2013 15:26:52 +0000 (11:26 -0400)]
Fix #1293
Kenneth Reitz [Fri, 5 Apr 2013 03:41:52 +0000 (20:41 -0700)]
Merge pull request #1291 from gazpachoking/dont_set_session_cookies_on_response
Don't set all session cookies on response.cookies
Chase Sterling [Fri, 5 Apr 2013 03:29:02 +0000 (23:29 -0400)]
Don't set all session cookies on response.cookies
Kenneth Reitz [Fri, 5 Apr 2013 03:22:38 +0000 (20:22 -0700)]
Merge pull request #1290 from gazpachoking/#1287
fix #1287: Make sure expired cookies get removed from session.cookies
Chase Sterling [Fri, 5 Apr 2013 02:48:14 +0000 (22:48 -0400)]
Make sure unit test works on python 2.6
Chase Sterling [Fri, 5 Apr 2013 02:40:27 +0000 (22:40 -0400)]
Add a unit test for server expiring cookies from session
Chase Sterling [Fri, 5 Apr 2013 02:11:38 +0000 (22:11 -0400)]
fix #1287: Make sure expired cookies get removed from session.cookies
Kenneth Reitz [Thu, 4 Apr 2013 01:04:40 +0000 (18:04 -0700)]
Merge pull request #1283 from sigmavirus24/master
Closes #1280
Jason Emerick [Tue, 2 Apr 2013 18:22:49 +0000 (14:22 -0400)]
model the encode_files data handling after encode_params
Jason Emerick [Tue, 2 Apr 2013 18:22:12 +0000 (14:22 -0400)]
add a few more variations to the unicode multipart post test
Jason Emerick [Tue, 2 Apr 2013 15:41:07 +0000 (11:41 -0400)]
add additional test for unicode multipart post
Ian Cordasco [Tue, 2 Apr 2013 14:07:37 +0000 (10:07 -0400)]
Add PreparedRequest recipe to the docs
Ian Cordasco [Tue, 2 Apr 2013 13:27:25 +0000 (09:27 -0400)]
Closes #1280
Correct the doc-string for Session#request that I copied without thinking
about.
Kenneth Reitz [Tue, 2 Apr 2013 12:13:46 +0000 (08:13 -0400)]
Revert "Fix for the issue https://github.com/kennethreitz/requests/issues/1280"
This reverts commit
ca0aea640d0cce01c126220b74362c9014cabbd6.
Kenneth Reitz [Tue, 2 Apr 2013 11:44:59 +0000 (04:44 -0700)]
Merge pull request #1281 from KamilSzot/Issue_kennethreitz_requests_issues_1280
Fix for the issue https://github.com/kennethreitz/requests/issues/1280
Kamil Szot [Tue, 2 Apr 2013 11:42:40 +0000 (13:42 +0200)]
Fix for the issue https://github.com/kennethreitz/requests/issues/1280
Kenneth Reitz [Tue, 2 Apr 2013 04:36:49 +0000 (21:36 -0700)]
Merge pull request #1278 from t-8ch/patch-1
fix tiny typo in HISTORY.rst
Kenneth Reitz [Tue, 2 Apr 2013 04:36:39 +0000 (21:36 -0700)]
Merge pull request #1277 from pborreli/typos
Fixed typos