Jason R. Coombs [Tue, 4 Mar 2014 22:46:58 +0000 (17:46 -0500)]
Add tests for decode_unicode
Jason R. Coombs [Tue, 4 Mar 2014 21:33:40 +0000 (16:33 -0500)]
Always honor decode_unicode, even when _content is present.
--HG--
extra : amend_source :
25977a1227b163d49bf2e1aec6aa448e5cd3be8a
Jason R. Coombs [Tue, 4 Mar 2014 21:27:13 +0000 (16:27 -0500)]
Add documentation about decode_unicode.
Cory Benfield [Mon, 3 Mar 2014 20:23:59 +0000 (20:23 +0000)]
Timeout documentation changes.
Kenneth Reitz [Mon, 3 Mar 2014 18:14:37 +0000 (13:14 -0500)]
Merge pull request #1935 from cjstapleton/master
Add timeout to stream with testing
Kenneth Reitz [Mon, 3 Mar 2014 18:13:13 +0000 (13:13 -0500)]
Merge pull request #1921 from sigmavirus24/fix-session-header-none
Do not set headers with None value
Cory Benfield [Sun, 2 Mar 2014 09:34:55 +0000 (09:34 +0000)]
Merge pull request #1934 from kennethreitz/update-notice
Charade -> Chardet and Add cacert.pem license
Ian Cordasco [Sat, 1 Mar 2014 17:15:14 +0000 (11:15 -0600)]
Remove unnecessary bits from cacert notice section
cjstapleton [Sat, 1 Mar 2014 01:06:59 +0000 (19:06 -0600)]
Fix styling issues with add timeout to stream with testing
cjstapleton [Fri, 28 Feb 2014 16:08:57 +0000 (10:08 -0600)]
Add timeout to stream with testing
Fixes Issue #1803
Ian Cordasco [Fri, 28 Feb 2014 14:27:50 +0000 (08:27 -0600)]
Charade -> Chardet and Add cacert.pem license
- Charade is gone, long live Chardet.
- cacert.pem is now taken wholesale from Mozilla so we need to display that
itis licensed under the MPL2.0
Cory Benfield [Sun, 16 Feb 2014 19:02:05 +0000 (19:02 +0000)]
Merge pull request #1923 from Lukasa/master
The timeout is in seconds.
Cory Benfield [Sun, 16 Feb 2014 19:00:22 +0000 (19:00 +0000)]
The timeout is in seconds.
Ian Cordasco [Fri, 14 Feb 2014 22:15:21 +0000 (16:15 -0600)]
Do not set headers with None value
- Regardless of whether they are on the session or not
- Fixes #1920
Kenneth Reitz [Thu, 13 Feb 2014 21:03:37 +0000 (16:03 -0500)]
Merge pull request #1918 from zackw/response-is-redirect
New Response property, .is_redirect.
Zack Weinberg [Thu, 13 Feb 2014 19:27:42 +0000 (14:27 -0500)]
New Response property, .is_redirect.
Kenneth Reitz [Tue, 11 Feb 2014 16:58:23 +0000 (11:58 -0500)]
Merge pull request #1891 from sigmavirus24/add-requests-to-exceptions
Add request to RequestException
Kenneth Reitz [Tue, 11 Feb 2014 16:55:33 +0000 (11:55 -0500)]
Merge pull request #1897 from aliles/master
Document requirements for SNI support on Python2
Kenneth Reitz [Tue, 11 Feb 2014 16:55:20 +0000 (11:55 -0500)]
Merge pull request #1900 from mjpieters/issue1674-json-fallback-encoding
Reinstate falling back to self.text for JSON responses
Cory Benfield [Tue, 11 Feb 2014 07:31:47 +0000 (07:31 +0000)]
Clarify our 1.2.1 behaviour change.
Kenneth Reitz [Fri, 7 Feb 2014 02:32:41 +0000 (18:32 -0800)]
Merge pull request #1902 from mjpieters/master
Remove unused loggers.
Cory Benfield [Wed, 5 Feb 2014 18:32:16 +0000 (18:32 +0000)]
Merge pull request #1904 from mjpieters/doc-response-reason
Document the `Response.reason` attribute.
Martijn Pieters [Wed, 5 Feb 2014 17:29:09 +0000 (17:29 +0000)]
Document the `Response.reason` attribute.
Made `.status_code` and `.reason` consistent with one another, adding some examples. Addresses #1225.
Aaron Iles [Tue, 4 Feb 2014 10:08:11 +0000 (21:08 +1100)]
State early in SNI discussion Python2 limitation
Reference at the earliest opportunity that Server-Name-Indication is a
limitation of Python 2.6 and 2.7. Avoid describing it as a Requests
issue.
Cory Benfield [Tue, 4 Feb 2014 08:53:53 +0000 (00:53 -0800)]
Merge pull request #1901 from mjpieters/chardet-not-charade
One last Charade reference to remove here.
Martijn Pieters [Mon, 3 Feb 2014 13:43:59 +0000 (13:43 +0000)]
Remove unused loggers.
Martijn Pieters [Mon, 3 Feb 2014 13:39:21 +0000 (13:39 +0000)]
One last Charade reference to remove here.
Martijn Pieters [Mon, 3 Feb 2014 13:37:57 +0000 (13:37 +0000)]
Remove logging and charade mention.
Logging is Not Allowed, so out it goes.
Martijn Pieters [Mon, 3 Feb 2014 12:00:14 +0000 (12:00 +0000)]
Reinstate falling back to self.text for JSON responses
A JSON response that has no encoding specified will be decoded with a detected UTF codec (compliant with the JSON RFC), but if that fails, we guessed wrong and need to fall back to charade character detection (via `self.text`). Kenneth removed this functionality (by accident?) in
1451ba0c6d395c41f86da35036fa361c3a41bc90, this reinstates it again and adds a log warning.
Fixes #1674
Aaron Iles [Sun, 2 Feb 2014 11:19:10 +0000 (22:19 +1100)]
Move SNI documentation to FAQ
Relocate documentation on Server-Name-Indication from the advanced
section to the frequently asked questions. This is minus details on
enabling SNI on Python2, which is instead captured by linking to Stack
Overflow.
Aaron Iles [Sun, 2 Feb 2014 09:14:05 +0000 (20:14 +1100)]
Document requirements for SNI support on Python2
A section for Request's advanced usage guide on what Server Name
Indication is, its purpose, and how to enable it on Python2.
Kenneth Reitz [Fri, 31 Jan 2014 17:31:11 +0000 (12:31 -0500)]
what is wrong with you people? :)
Kenneth Reitz [Fri, 31 Jan 2014 17:30:52 +0000 (12:30 -0500)]
omg never do this again ever please
Kenneth Reitz [Fri, 31 Jan 2014 17:29:56 +0000 (12:29 -0500)]
who did this
Kenneth Reitz [Fri, 31 Jan 2014 17:27:05 +0000 (12:27 -0500)]
cleanup shitty code
Kenneth Reitz [Fri, 31 Jan 2014 17:19:53 +0000 (09:19 -0800)]
Merge pull request #1892 from Lukasa/netrcauth
Repopulate ~/.netrc auth.
Cory Benfield [Fri, 31 Jan 2014 07:36:44 +0000 (07:36 +0000)]
Respect trust_env on redirect.
Kenneth Reitz [Thu, 30 Jan 2014 17:23:57 +0000 (09:23 -0800)]
Merge pull request #1893 from Lukasa/license
Avoid breaking crappy distribution methods.
Cory Benfield [Thu, 30 Jan 2014 15:11:24 +0000 (15:11 +0000)]
Better layout for checking.
Cory Benfield [Wed, 29 Jan 2014 19:21:04 +0000 (19:21 +0000)]
Avoid breaking crappy distribution methods.
Cory Benfield [Wed, 29 Jan 2014 19:13:46 +0000 (19:13 +0000)]
Repopulate ~/.netrc auth.
Ian Cordasco [Wed, 29 Jan 2014 02:39:09 +0000 (20:39 -0600)]
Explicitly check for None
Ian Cordasco [Wed, 29 Jan 2014 02:24:41 +0000 (20:24 -0600)]
Avoid having to fix tests
Ian Cordasco [Wed, 29 Jan 2014 02:13:57 +0000 (20:13 -0600)]
Move creation of attributes to RequestException
Pass request objects in HTTPAdapter
Kenneth Reitz [Tue, 28 Jan 2014 20:14:38 +0000 (12:14 -0800)]
Merge pull request #1888 from longaccess/handle301
Fix for 301 redirect and latest PyOpenSSL.
Konstantinos Koukopoulos [Tue, 28 Jan 2014 17:11:23 +0000 (09:11 -0800)]
on redirect pass URL as bytes. Fixes: #1887
Konstantinos Koukopoulos [Tue, 28 Jan 2014 17:08:16 +0000 (09:08 -0800)]
test pyopenssl redirect (unit test for #1887)
Cory Benfield [Tue, 28 Jan 2014 09:07:23 +0000 (01:07 -0800)]
Merge pull request #1886 from meteozond/patch-1
Added info about posted files headers
Alexander [Tue, 28 Jan 2014 09:03:59 +0000 (12:03 +0300)]
Added info about posted files headers
Ian Cordasco [Sat, 25 Jan 2014 13:38:39 +0000 (05:38 -0800)]
Merge pull request #1881 from kevinburke/typo
s/soley/solely
Kevin Burke [Sat, 25 Jan 2014 08:20:10 +0000 (00:20 -0800)]
s/soley/solely
Kenneth Reitz [Fri, 24 Jan 2014 20:39:32 +0000 (15:39 -0500)]
NOTICE update
Kenneth Reitz [Thu, 23 Jan 2014 18:54:08 +0000 (10:54 -0800)]
Merge pull request #1870 from sigmavirus24/add-toolbelt-to-docs
Add a small note about requests-toolbelt
Kenneth Reitz [Thu, 23 Jan 2014 18:25:40 +0000 (13:25 -0500)]
v2.2.1
Kenneth Reitz [Thu, 23 Jan 2014 18:22:21 +0000 (10:22 -0800)]
Merge pull request #1876 from dstufft/update-urllib3
Update urllib3 to
9346c5c
Donald Stufft [Wed, 22 Jan 2014 19:20:34 +0000 (14:20 -0500)]
Update urllib3 to
9346c5c
Cory Benfield [Wed, 22 Jan 2014 14:28:41 +0000 (14:28 +0000)]
Update changelog for 2.2.1.
Ian Cordasco [Wed, 22 Jan 2014 01:55:00 +0000 (19:55 -0600)]
Add missing sled
Thanks @kevinburke
Cory Benfield [Tue, 21 Jan 2014 18:24:37 +0000 (10:24 -0800)]
Merge pull request #1874 from kevinburke/typo
Typo in History
Kevin Burke [Tue, 21 Jan 2014 18:18:04 +0000 (10:18 -0800)]
Typo in History
Ian Cordasco [Sun, 19 Jan 2014 04:44:50 +0000 (22:44 -0600)]
Add a small note about requests-toolbelt
Kenneth Reitz [Thu, 16 Jan 2014 23:12:40 +0000 (15:12 -0800)]
Update NOTICE
Kenneth Reitz [Thu, 16 Jan 2014 22:16:04 +0000 (14:16 -0800)]
Merge pull request #1867 from Lukasa/closing
Document contextlib.closing.
Cory Benfield [Thu, 16 Jan 2014 08:37:29 +0000 (08:37 +0000)]
Document contextlib.closing.
Kenneth Reitz [Tue, 14 Jan 2014 19:56:04 +0000 (11:56 -0800)]
Merge pull request #1862 from sybeck2k/master
Fixed parsing of username and password encoded in the URI
Roberto Migli [Mon, 13 Jan 2014 15:29:46 +0000 (16:29 +0100)]
Added comment for test test_get_auth_from_url
Roberto Migli [Mon, 13 Jan 2014 13:04:28 +0000 (14:04 +0100)]
Merged changes from @lukasa
Roberto Migli [Mon, 13 Jan 2014 12:32:00 +0000 (13:32 +0100)]
Fixed parsing of username and password encoded in the URI
Cory Benfield [Sun, 12 Jan 2014 14:46:40 +0000 (14:46 +0000)]
Don't need to unquote twice.
Cory Benfield [Sun, 12 Jan 2014 14:44:53 +0000 (14:44 +0000)]
Be less defensive in get_auth_from_url.
Cory Benfield [Sun, 12 Jan 2014 09:39:32 +0000 (09:39 +0000)]
Meet @sigmavirus24's demanding stylistic criteria.
Cory Benfield [Sat, 11 Jan 2014 10:15:53 +0000 (10:15 +0000)]
TypeError, not AttributeError on 3.3.
Cory Benfield [Sat, 11 Jan 2014 09:59:23 +0000 (09:59 +0000)]
Unquote the auth after splitting the url.
Cory Benfield [Thu, 9 Jan 2014 19:48:13 +0000 (19:48 +0000)]
Fixup the header heirarchy.
Cory Benfield [Thu, 9 Jan 2014 19:46:32 +0000 (19:46 +0000)]
Merge branch 'master' of github.com:dsoprea/requests
Conflicts:
docs/user/advanced.rst
Kenneth Reitz [Thu, 9 Jan 2014 19:38:44 +0000 (14:38 -0500)]
fix rst syntax bugs
Kenneth Reitz [Thu, 9 Jan 2014 19:33:17 +0000 (14:33 -0500)]
v2.2.0
Kenneth Reitz [Thu, 9 Jan 2014 19:14:45 +0000 (11:14 -0800)]
Merge pull request #1854 from Lukasa/220
Changelog for 2.2.0.
Cory Benfield [Thu, 9 Jan 2014 19:10:30 +0000 (19:10 +0000)]
Changelog for 2.2.0.
Cory Benfield [Thu, 9 Jan 2014 19:08:58 +0000 (19:08 +0000)]
Make ContentDecodingError a subclass.
This should avoid the user having to worry about the new exception.
Dustin Oprea [Thu, 9 Jan 2014 05:25:03 +0000 (00:25 -0500)]
Added an SSL TA example.
Kenneth Reitz [Wed, 8 Jan 2014 18:57:09 +0000 (10:57 -0800)]
Merge pull request #1846 from acdha/paranoid-get_netrc_auth
get_netrc_auth should handle os.path.expanduser failing
Kenneth Reitz [Wed, 8 Jan 2014 18:53:23 +0000 (13:53 -0500)]
Merge branch 'master' into fix-pickling-adapters
Conflicts:
AUTHORS.rst
Kenneth Reitz [Wed, 8 Jan 2014 18:51:08 +0000 (10:51 -0800)]
Merge pull request #1845 from Lukasa/proxy_bypass
Resolve proxy_bypass problems.
Kenneth Reitz [Wed, 8 Jan 2014 18:50:00 +0000 (10:50 -0800)]
Merge pull request #1827 from pepijndevos/master
Use adapter pool size for proxies
Kenneth Reitz [Wed, 8 Jan 2014 18:48:25 +0000 (10:48 -0800)]
Merge pull request #1831 from kevinburke/interlinks
Add more interlinks between the documentation
Kenneth Reitz [Wed, 8 Jan 2014 18:45:33 +0000 (10:45 -0800)]
Merge pull request #1832 from kevinburke/docs-warnings
Fix warnings when building the docs
Kenneth Reitz [Wed, 8 Jan 2014 18:44:20 +0000 (10:44 -0800)]
Merge pull request #1836 from sigmavirus24/2014
Bump the year ftw
Kenneth Reitz [Tue, 7 Jan 2014 23:22:24 +0000 (15:22 -0800)]
Merge pull request #1849 from kevinburke/urllib3-update
Update urllib3 to
232f496
Kevin Burke [Tue, 7 Jan 2014 20:32:01 +0000 (12:32 -0800)]
Update urllib3 to
232f496
Chris Adams [Tue, 7 Jan 2014 17:23:11 +0000 (12:23 -0500)]
get_netrc_auth: code cleanup
* Stop iterating as soon as we find a netrc file
* More obvious return None
Kenneth Reitz [Tue, 7 Jan 2014 17:03:24 +0000 (12:03 -0500)]
/me grumbles
Chris Adams [Tue, 7 Jan 2014 16:34:51 +0000 (11:34 -0500)]
get_netrc_auth: handle os.path.expanduser failure
os.path.expanduser can raise a KeyError when $HOME is not set and the
POSIX getpwuid() call fails, which can happen when running under a UID
which is not in /etc/passwd or when the password file cannot be read.
The upstream bug report http://bugs.python.org/issue20164 is unlikely to
be backported to Python 2.x even if fixed so this change handles
KeyError by skipping netrc authentication.
Closes #1846
Cory Benfield [Tue, 7 Jan 2014 09:37:59 +0000 (09:37 +0000)]
Don't let proxy_bypass bring you down.
Ian Cordasco [Thu, 2 Jan 2014 22:05:29 +0000 (16:05 -0600)]
No one checks docs or a license
Ian Cordasco [Thu, 2 Jan 2014 22:01:15 +0000 (16:01 -0600)]
Bump the year ftw
Kevin Burke [Sat, 28 Dec 2013 08:09:29 +0000 (00:09 -0800)]
Fix warnings when building the docs
It may be nice to make builds fail if new documentation generates warnings, to
avoid these sorts of problems slipping in in the future.
Kevin Burke [Sat, 28 Dec 2013 07:43:55 +0000 (23:43 -0800)]
Add more interlinks between the documentation
Also fixes up tense in a few cases, and adds the `intersphinx` extension so we
can link to the urllib3 documentation when it is called out.
Pepijn de Vos [Tue, 24 Dec 2013 10:14:04 +0000 (11:14 +0100)]
use adapter pool size for proxies
Kenneth Reitz [Fri, 20 Dec 2013 14:21:04 +0000 (06:21 -0800)]
Merge pull request #1823 from Lukasa/moredocs
Update docs to highlight the value of r.encoding.