services/python-requests.git
11 years agoAdd documentation about decode_unicode.
Jason R. Coombs [Tue, 4 Mar 2014 21:27:13 +0000 (16:27 -0500)]
Add documentation about decode_unicode.

11 years agoTimeout documentation changes.
Cory Benfield [Mon, 3 Mar 2014 20:23:59 +0000 (20:23 +0000)]
Timeout documentation changes.

11 years agoMerge pull request #1935 from cjstapleton/master
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

11 years agoMerge pull request #1921 from sigmavirus24/fix-session-header-none
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

11 years agoMerge pull request #1934 from kennethreitz/update-notice
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

11 years agoRemove unnecessary bits from cacert notice section
Ian Cordasco [Sat, 1 Mar 2014 17:15:14 +0000 (11:15 -0600)]
Remove unnecessary bits from cacert notice section

11 years agoFix styling issues with add timeout to stream with testing
cjstapleton [Sat, 1 Mar 2014 01:06:59 +0000 (19:06 -0600)]
Fix styling issues with add timeout to stream with testing

11 years agoAdd 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

11 years agoCharade -> Chardet and Add cacert.pem license
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

11 years agoMerge pull request #1923 from Lukasa/master
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.

11 years agoThe timeout is in seconds.
Cory Benfield [Sun, 16 Feb 2014 19:00:22 +0000 (19:00 +0000)]
The timeout is in seconds.

11 years agoDo not set headers with None value
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

11 years agoMerge pull request #1918 from zackw/response-is-redirect
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.

11 years agoNew Response property, .is_redirect.
Zack Weinberg [Thu, 13 Feb 2014 19:27:42 +0000 (14:27 -0500)]
New Response property, .is_redirect.

11 years agoMerge pull request #1891 from sigmavirus24/add-requests-to-exceptions
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

11 years agoMerge pull request #1897 from aliles/master
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

11 years agoMerge pull request #1900 from mjpieters/issue1674-json-fallback-encoding
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

11 years agoClarify our 1.2.1 behaviour change.
Cory Benfield [Tue, 11 Feb 2014 07:31:47 +0000 (07:31 +0000)]
Clarify our 1.2.1 behaviour change.

11 years agoMerge pull request #1902 from mjpieters/master
Kenneth Reitz [Fri, 7 Feb 2014 02:32:41 +0000 (18:32 -0800)]
Merge pull request #1902 from mjpieters/master

Remove unused loggers.

11 years agoMerge pull request #1904 from mjpieters/doc-response-reason
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.

11 years agoDocument 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.

11 years agoState early in SNI discussion Python2 limitation
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.

11 years agoMerge pull request #1901 from mjpieters/chardet-not-charade
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.

11 years agoRemove unused loggers.
Martijn Pieters [Mon, 3 Feb 2014 13:43:59 +0000 (13:43 +0000)]
Remove unused loggers.

11 years agoOne last Charade reference to remove here.
Martijn Pieters [Mon, 3 Feb 2014 13:39:21 +0000 (13:39 +0000)]
One last Charade reference to remove here.

11 years agoRemove logging and charade mention.
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.

11 years agoReinstate falling back to self.text for JSON responses
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

11 years agoMove SNI documentation to FAQ
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.

11 years agoDocument requirements for SNI support on Python2
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.

11 years agowhat is wrong with you people? :)
Kenneth Reitz [Fri, 31 Jan 2014 17:31:11 +0000 (12:31 -0500)]
what is wrong with you people? :)

11 years agoomg never do this again ever please
Kenneth Reitz [Fri, 31 Jan 2014 17:30:52 +0000 (12:30 -0500)]
omg never do this again ever please

11 years agowho did this
Kenneth Reitz [Fri, 31 Jan 2014 17:29:56 +0000 (12:29 -0500)]
who did this

11 years agocleanup shitty code
Kenneth Reitz [Fri, 31 Jan 2014 17:27:05 +0000 (12:27 -0500)]
cleanup shitty code

11 years agoMerge pull request #1892 from Lukasa/netrcauth
Kenneth Reitz [Fri, 31 Jan 2014 17:19:53 +0000 (09:19 -0800)]
Merge pull request #1892 from Lukasa/netrcauth

Repopulate ~/.netrc auth.

11 years agoRespect trust_env on redirect.
Cory Benfield [Fri, 31 Jan 2014 07:36:44 +0000 (07:36 +0000)]
Respect trust_env on redirect.

11 years agoMerge pull request #1893 from Lukasa/license
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.

11 years agoBetter layout for checking.
Cory Benfield [Thu, 30 Jan 2014 15:11:24 +0000 (15:11 +0000)]
Better layout for checking.

11 years agoAvoid breaking crappy distribution methods.
Cory Benfield [Wed, 29 Jan 2014 19:21:04 +0000 (19:21 +0000)]
Avoid breaking crappy distribution methods.

11 years agoRepopulate ~/.netrc auth.
Cory Benfield [Wed, 29 Jan 2014 19:13:46 +0000 (19:13 +0000)]
Repopulate ~/.netrc auth.

11 years agoExplicitly check for None
Ian Cordasco [Wed, 29 Jan 2014 02:39:09 +0000 (20:39 -0600)]
Explicitly check for None

11 years agoAvoid having to fix tests
Ian Cordasco [Wed, 29 Jan 2014 02:24:41 +0000 (20:24 -0600)]
Avoid having to fix tests

11 years agoMove creation of attributes to RequestException
Ian Cordasco [Wed, 29 Jan 2014 02:13:57 +0000 (20:13 -0600)]
Move creation of attributes to RequestException

Pass request objects in HTTPAdapter

11 years agoMerge pull request #1888 from longaccess/handle301
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.

11 years agoon redirect pass URL as bytes. Fixes: #1887
Konstantinos Koukopoulos [Tue, 28 Jan 2014 17:11:23 +0000 (09:11 -0800)]
on redirect pass URL as bytes. Fixes: #1887

11 years agotest pyopenssl redirect (unit test for #1887)
Konstantinos Koukopoulos [Tue, 28 Jan 2014 17:08:16 +0000 (09:08 -0800)]
test pyopenssl redirect (unit test for #1887)

11 years agoMerge pull request #1886 from meteozond/patch-1
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

11 years agoAdded info about posted files headers
Alexander [Tue, 28 Jan 2014 09:03:59 +0000 (12:03 +0300)]
Added info about posted files headers

11 years agoMerge pull request #1881 from kevinburke/typo
Ian Cordasco [Sat, 25 Jan 2014 13:38:39 +0000 (05:38 -0800)]
Merge pull request #1881 from kevinburke/typo

s/soley/solely

11 years agos/soley/solely
Kevin Burke [Sat, 25 Jan 2014 08:20:10 +0000 (00:20 -0800)]
s/soley/solely

11 years agoNOTICE update
Kenneth Reitz [Fri, 24 Jan 2014 20:39:32 +0000 (15:39 -0500)]
NOTICE update

11 years agoMerge pull request #1870 from sigmavirus24/add-toolbelt-to-docs
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

11 years agov2.2.1 v2.2.1
Kenneth Reitz [Thu, 23 Jan 2014 18:25:40 +0000 (13:25 -0500)]
v2.2.1

11 years agoMerge pull request #1876 from dstufft/update-urllib3
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

11 years agoUpdate urllib3 to 9346c5c
Donald Stufft [Wed, 22 Jan 2014 19:20:34 +0000 (14:20 -0500)]
Update urllib3 to 9346c5c

11 years agoUpdate changelog for 2.2.1.
Cory Benfield [Wed, 22 Jan 2014 14:28:41 +0000 (14:28 +0000)]
Update changelog for 2.2.1.

11 years agoAdd missing sled
Ian Cordasco [Wed, 22 Jan 2014 01:55:00 +0000 (19:55 -0600)]
Add missing sled

Thanks @kevinburke

11 years agoMerge pull request #1874 from kevinburke/typo
Cory Benfield [Tue, 21 Jan 2014 18:24:37 +0000 (10:24 -0800)]
Merge pull request #1874 from kevinburke/typo

Typo in History

11 years agoTypo in History
Kevin Burke [Tue, 21 Jan 2014 18:18:04 +0000 (10:18 -0800)]
Typo in History

11 years agoAdd a small note about requests-toolbelt
Ian Cordasco [Sun, 19 Jan 2014 04:44:50 +0000 (22:44 -0600)]
Add a small note about requests-toolbelt

11 years agoUpdate NOTICE
Kenneth Reitz [Thu, 16 Jan 2014 23:12:40 +0000 (15:12 -0800)]
Update NOTICE

11 years agoMerge pull request #1867 from Lukasa/closing
Kenneth Reitz [Thu, 16 Jan 2014 22:16:04 +0000 (14:16 -0800)]
Merge pull request #1867 from Lukasa/closing

Document contextlib.closing.

11 years agoDocument contextlib.closing.
Cory Benfield [Thu, 16 Jan 2014 08:37:29 +0000 (08:37 +0000)]
Document contextlib.closing.

11 years agoMerge pull request #1862 from sybeck2k/master
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

11 years agoAdded comment for test test_get_auth_from_url
Roberto Migli [Mon, 13 Jan 2014 15:29:46 +0000 (16:29 +0100)]
Added comment for test test_get_auth_from_url

11 years agoMerged changes from @lukasa
Roberto Migli [Mon, 13 Jan 2014 13:04:28 +0000 (14:04 +0100)]
Merged changes from @lukasa

11 years agoFixed parsing of username and password encoded in the URI
Roberto Migli [Mon, 13 Jan 2014 12:32:00 +0000 (13:32 +0100)]
Fixed parsing of username and password encoded in the URI

11 years agoDon't need to unquote twice.
Cory Benfield [Sun, 12 Jan 2014 14:46:40 +0000 (14:46 +0000)]
Don't need to unquote twice.

11 years agoBe less defensive in get_auth_from_url.
Cory Benfield [Sun, 12 Jan 2014 14:44:53 +0000 (14:44 +0000)]
Be less defensive in get_auth_from_url.

11 years agoMeet @sigmavirus24's demanding stylistic criteria.
Cory Benfield [Sun, 12 Jan 2014 09:39:32 +0000 (09:39 +0000)]
Meet @sigmavirus24's demanding stylistic criteria.

11 years agoTypeError, not AttributeError on 3.3.
Cory Benfield [Sat, 11 Jan 2014 10:15:53 +0000 (10:15 +0000)]
TypeError, not AttributeError on 3.3.

11 years agoUnquote the auth after splitting the url.
Cory Benfield [Sat, 11 Jan 2014 09:59:23 +0000 (09:59 +0000)]
Unquote the auth after splitting the url.

11 years agoFixup the header heirarchy.
Cory Benfield [Thu, 9 Jan 2014 19:48:13 +0000 (19:48 +0000)]
Fixup the header heirarchy.

11 years agoMerge branch 'master' of github.com:dsoprea/requests
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

11 years agofix rst syntax bugs
Kenneth Reitz [Thu, 9 Jan 2014 19:38:44 +0000 (14:38 -0500)]
fix rst syntax bugs

11 years agov2.2.0 v2.2.0
Kenneth Reitz [Thu, 9 Jan 2014 19:33:17 +0000 (14:33 -0500)]
v2.2.0

11 years agoMerge pull request #1854 from Lukasa/220
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.

11 years agoChangelog for 2.2.0.
Cory Benfield [Thu, 9 Jan 2014 19:10:30 +0000 (19:10 +0000)]
Changelog for 2.2.0.

11 years agoMake ContentDecodingError a subclass.
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.

11 years agoAdded an SSL TA example.
Dustin Oprea [Thu, 9 Jan 2014 05:25:03 +0000 (00:25 -0500)]
Added an SSL TA example.

11 years agoMerge pull request #1846 from acdha/paranoid-get_netrc_auth
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

11 years agoMerge branch 'master' into fix-pickling-adapters
Kenneth Reitz [Wed, 8 Jan 2014 18:53:23 +0000 (13:53 -0500)]
Merge branch 'master' into fix-pickling-adapters

Conflicts:
AUTHORS.rst

11 years agoMerge pull request #1845 from Lukasa/proxy_bypass
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.

11 years agoMerge pull request #1827 from pepijndevos/master
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

11 years agoMerge pull request #1831 from kevinburke/interlinks
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

11 years agoMerge pull request #1832 from kevinburke/docs-warnings
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

11 years agoMerge pull request #1836 from sigmavirus24/2014
Kenneth Reitz [Wed, 8 Jan 2014 18:44:20 +0000 (10:44 -0800)]
Merge pull request #1836 from sigmavirus24/2014

Bump the year ftw

11 years agoMerge pull request #1849 from kevinburke/urllib3-update
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

11 years agoUpdate urllib3 to 232f496
Kevin Burke [Tue, 7 Jan 2014 20:32:01 +0000 (12:32 -0800)]
Update urllib3 to 232f496

11 years agoget_netrc_auth: code cleanup
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

11 years ago/me grumbles
Kenneth Reitz [Tue, 7 Jan 2014 17:03:24 +0000 (12:03 -0500)]
/me grumbles

11 years agoget_netrc_auth: handle os.path.expanduser failure
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

11 years agoDon't let proxy_bypass bring you down.
Cory Benfield [Tue, 7 Jan 2014 09:37:59 +0000 (09:37 +0000)]
Don't let proxy_bypass bring you down.

11 years agoNo one checks docs or a license
Ian Cordasco [Thu, 2 Jan 2014 22:05:29 +0000 (16:05 -0600)]
No one checks docs or a license

11 years agoBump the year ftw
Ian Cordasco [Thu, 2 Jan 2014 22:01:15 +0000 (16:01 -0600)]
Bump the year ftw

11 years agoFix warnings when building the docs
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.

11 years agoAdd more interlinks between the documentation
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.

11 years agouse adapter pool size for proxies
Pepijn de Vos [Tue, 24 Dec 2013 10:14:04 +0000 (11:14 +0100)]
use adapter pool size for proxies

11 years agoMerge pull request #1823 from Lukasa/moredocs
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.

11 years agoUpdate docs to highlight the value of r.encoding.
Cory Benfield [Fri, 20 Dec 2013 09:15:12 +0000 (09:15 +0000)]
Update docs to highlight the value of r.encoding.

11 years agoMerge pull request #1807 from podshumok/fix-request-cookiejar-as-dict
Kenneth Reitz [Thu, 19 Dec 2013 20:38:52 +0000 (12:38 -0800)]
Merge pull request #1807 from podshumok/fix-request-cookiejar-as-dict

cookiejar.iteritems() is broken after 2.1.0 update