services/python-requests.git
11 years agoMerge pull request #1981 from stanhu/master
Kenneth Reitz [Mon, 31 Mar 2014 14:29:30 +0000 (10:29 -0400)]
Merge pull request #1981 from stanhu/master

Update urllib to 1.8 (8a8c601bee)

11 years agoUpdate urllib to 1.8 (8a8c601bee)
Stan Hu [Fri, 28 Mar 2014 23:37:54 +0000 (16:37 -0700)]
Update urllib to 1.8 (8a8c601bee)

11 years agoMerge pull request #1976 from kennethreitz/fix-redirect-test
Kenneth Reitz [Wed, 26 Mar 2014 15:34:36 +0000 (11:34 -0400)]
Merge pull request #1976 from kennethreitz/fix-redirect-test

The expected value changed for the proxies keyword

11 years agoThe expected value changes for the proxies keyword
Ian Cordasco [Wed, 26 Mar 2014 13:12:31 +0000 (08:12 -0500)]
The expected value changes for the proxies keyword

It used to be None but a recent PR changed that before my last one was merged

11 years agoMerge pull request #1962 from sigmavirus24/fix-history-type
Kenneth Reitz [Mon, 24 Mar 2014 15:45:06 +0000 (11:45 -0400)]
Merge pull request #1962 from sigmavirus24/fix-history-type

Fix #1960: A Response's history should be a list

11 years agoMerge pull request #1963 from sigmavirus24/fix-redirect-methods
Kenneth Reitz [Mon, 24 Mar 2014 15:44:14 +0000 (11:44 -0400)]
Merge pull request #1963 from sigmavirus24/fix-redirect-methods

Fix #1955: Do not use original request in redirect

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 24 Mar 2014 15:39:20 +0000 (11:39 -0400)]
Merge remote-tracking branch 'origin/master'

11 years ago3.4
Kenneth Reitz [Mon, 24 Mar 2014 15:39:15 +0000 (11:39 -0400)]
3.4

11 years agoMerge pull request #1951 from Lukasa/proxyauth
Kenneth Reitz [Sun, 23 Mar 2014 14:51:48 +0000 (10:51 -0400)]
Merge pull request #1951 from Lukasa/proxyauth

Re-evaluate proxy authorization.

11 years agoStyle changes thanks to @sigmavirus24.
Cory Benfield [Sat, 22 Mar 2014 21:11:33 +0000 (21:11 +0000)]
Style changes thanks to @sigmavirus24.

11 years agoActually assign history
Ian Cordasco [Sat, 15 Mar 2014 17:48:29 +0000 (12:48 -0500)]
Actually assign history

11 years agoFix #1955: Do not use original request in redirect
Ian Cordasco [Sat, 15 Mar 2014 16:38:13 +0000 (11:38 -0500)]
Fix #1955: Do not use original request in redirect

The original request was never being properly overriden in resolve_redirects.
As such being having a POST request respond with a 303 would generate a GET
request. If the GET request encountered another redirect to something like a
307, then it would use the original request and generate another POST request.

There are two parts to this fix:

- The fix itself
- The test infrastructure to ensure it does not regress because HTTPBin is
  insufficient

11 years agoFix #1960: A Response's history should be a list
Ian Cordasco [Sat, 15 Mar 2014 15:33:00 +0000 (10:33 -0500)]
Fix #1960: A Response's history should be a list

11 years agoTest stripping standard auth.
Cory Benfield [Wed, 12 Mar 2014 21:53:07 +0000 (21:53 +0000)]
Test stripping standard auth.

11 years agoRemove some extraneous comments to please KR.
Cory Benfield [Wed, 12 Mar 2014 21:21:14 +0000 (21:21 +0000)]
Remove some extraneous comments to please KR.

11 years agoMerge pull request #1916 from schlamar/accept-encoding
Kenneth Reitz [Wed, 12 Mar 2014 20:37:27 +0000 (16:37 -0400)]
Merge pull request #1916 from schlamar/accept-encoding

Fix Accept-Encoding in default headers

11 years agoMerge pull request #1949 from Lukasa/pickle
Kenneth Reitz [Wed, 12 Mar 2014 20:18:58 +0000 (16:18 -0400)]
Merge pull request #1949 from Lukasa/pickle

Pickled Responses should include a None value for the raw attribute

11 years agoAdd method for rebuilding proxy configuration.
Cory Benfield [Wed, 12 Mar 2014 19:22:40 +0000 (19:22 +0000)]
Add method for rebuilding proxy configuration.

This includes auth.

11 years agoMove auth rebuild to its own method.
Cory Benfield [Wed, 12 Mar 2014 19:22:11 +0000 (19:22 +0000)]
Move auth rebuild to its own method.

11 years agoSplit get_environ_proxies into two methods.
Cory Benfield [Wed, 12 Mar 2014 19:20:12 +0000 (19:20 +0000)]
Split get_environ_proxies into two methods.

This makes it possible to get at the no_proxy logic separately.

11 years agoEnsure that .raw() is present after unpickling.
Cory Benfield [Wed, 12 Mar 2014 18:34:43 +0000 (18:34 +0000)]
Ensure that .raw() is present after unpickling.

Some people will assume that .raw() is present, and they shouldn't get
AttributeErrors when they make that assumption on a pickled Response.
However, @kennethreitz has asked that we not be too dependent on
urllib3. For that reason, set to None.

11 years agoRemoved compress from accepted encodings.
schlamar [Wed, 12 Mar 2014 11:10:53 +0000 (12:10 +0100)]
Removed compress from accepted encodings.

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.