kennethreitz
b0704b86de
years
2016-02-18 14:16:50 -05:00
kennethreitz
fc512d8924
Don't use redirect_cache if allow_redirects=False
...
Fix for #2997
2016-02-05 17:51:09 -05:00
Markus Unterwaditzer
2140c98fa4
Fix syntax error
2016-01-30 19:59:58 +01:00
kennethreitz
6195edc075
cleanup of auth __eq__
2016-01-29 22:18:07 -05:00
kennethreitz
f7447d1871
Merge pull request #2958 from Malizor/master
...
Add equality functions for authentication handlers
2016-01-29 22:08:26 -05:00
Carson Lam
a02069ec9e
Remove int type on max_retries argument.
2016-01-29 15:30:22 -08:00
Ryan Munro
6a8a480d6c
Review changes to TooManyRedirect exception with response
2016-01-20 10:48:12 -08:00
Ryan Munro
e6f218f3f6
Return request & response with TooManyRedirects
2016-01-19 16:44:58 -08:00
Nicolas Delvaux
06df08e676
Add equality functions for authentication handlers
2016-01-04 17:01:06 +01:00
Cory Benfield
1108058626
v2.9.1
2015-12-21 14:53:36 +00:00
Ian Cordasco
06a411c289
Merge pull request #2937 from Lukasa/release/2.9.1
...
Release 2.9.1
2015-12-21 08:51:21 -06:00
Cory Benfield
6e0649d9f8
Push code review advice from @sigmavirus24
2015-12-19 08:44:21 +00:00
Cory Benfield
834a9601c3
Update urllib3 to 1.13.1
2015-12-19 08:40:39 +00:00
Cory Benfield
589f13ca9d
Handle bytes and unicode URLs for netloc
2015-12-18 09:22:23 +00:00
Cory Benfield
96a068b58e
Merge branch 'master' into fix-1859
2015-12-18 09:14:13 +00:00
Cory Benfield
fc8fa1aa26
Fix regression from #2844 regarding binary bodies.
2015-12-16 14:56:13 +00:00
Cory Benfield
5f7a3a74aa
v2.9.0
2015-12-15 15:29:27 +00:00
Cory Benfield
3c0f0b9ab5
Update urllib3 to 1.13
2015-12-15 14:47:20 +00:00
Brian Samek
9aca57d4bf
Revert changes to params
...
This reverts commit 9a20afd6b5 .
Docstring changes were desirable, but changes to params were not.
2015-12-11 16:47:47 -05:00
Brian Samek
9a20afd6b5
Refactor default params
...
Specified the default argument for params that have a default in the docstring
so that the default is easier to see from the code. Modified the docstring in
api.py to match the docstring in sessions.py.
2015-12-11 13:32:09 -05:00
Brian Samek
3ad66349ea
Add hint to :param verify.
...
It is not clear that :param verify defaults to True. The way the verify
portion of the docstring is written it looks like it defaults to False, and
you have to pass in True if you'd like the SSL cert to be verified, but the
opposite is the case.
2015-12-09 11:21:21 -05:00
Matt Jordan
5c19d3e07b
requests/auth: Handle an empty 'qop' attribute in a Authenticate challenge
...
Some malfunctioning HTTP servers may return a qop directive with no token, as
opposed to correctly omitting the qop directive completely. For example:
header: WWW-Authenticate: Digest realm="foobar_api_auth", qop="",
nonce="a12059eaaad0b86ece8f62f04cbafed6", algorithm="MD5",
stale="false"
Prior to this patch, requests would respond with a 'None' Authorization header.
While the server is certainly incorrect, this patch updates requests to be
more tolerant to this kind of shenaniganry. If we receive an empty string for
the value of the qop attribute, we instead treat that as if the qop attribute
was simply not provided.
Closes #2916
2015-12-05 16:14:52 -06:00
Ian Cordasco
40ce36671c
Merge pull request #2896 from BraulioVM/master
...
[WIP] Set 'Transfer-Encoding: chunked' if data is a file with length 0
2015-12-02 08:35:41 -06:00
Jakub Wilk
23d9b077d8
Fix typos
2015-12-01 12:24:56 +01:00
Olle Lundberg
68db4132e3
Update adapters.py
...
Remove duplicate word.
2015-11-25 02:02:41 +01:00
Braulio Valdivielso Martínez
4c82dbab6f
Fix 'Transfer-Encoding: chunked' change
2015-11-24 13:42:13 +01:00
Braulio Valdivielso Martínez
6f6b2fd1d5
Set 'Transfer-Encoding: chunked' if data file length equals 0
2015-11-23 20:52:06 +01:00
Ian Cordasco
5397ef71b3
Fix super_len for partially read files
...
Closes #2872
2015-11-10 21:22:24 -06:00
vienno
d849d6e907
Replace 'if x' with 'if x is not None' in cookie loop
2015-11-10 13:58:09 +01:00
vienno
89178ebcdc
Complete unnesting of if statements in cookie loop
2015-11-10 13:47:40 +01:00
vienno
a25a641fb4
unnest deep loop
2015-11-10 12:36:36 +01:00
Ian Cordasco
35170e180e
Merge pull request #2858 from Lukasa/support_ca_cert_directories
...
Add support for a directory of CAs
2015-11-07 15:39:41 -06:00
Ian Cordasco
7d5d067e9c
Merge pull request #2861 from Lukasa/broken_chunked_encoding
...
Fix breakage introduced by 8f591682
2015-11-07 11:50:50 -06:00
Artur Siekielski
1ced0040bd
Assure session is closed on exception.
2015-11-06 21:54:43 +01:00
Cory Benfield
e67cd15bc8
Fix breakage introduced by 8f591682
2015-11-05 18:54:40 +00:00
Cory Benfield
0352ec0bd3
Add support for a directory of CAs
2015-11-05 13:21:21 +00:00
Ann Paul
7dd94941c8
Add 511 Network Authentication Required status code to dict of status codes
2015-10-26 08:42:37 -07:00
Ian Cordasco
d290a9b4c6
Merge pull request #2825 from Lukasa/universal_newlines
...
Add warnings about text/binary mode files.
2015-10-24 09:37:16 -05:00
Cory Benfield
f1fd11e54f
Emit warnings when using text mode files.
2015-10-24 09:29:23 +01:00
Alex Khomchenko
edc68a0ac8
fix issue #2844
2015-10-23 15:22:36 +03:00
Dimitris Bliablias
8f591682e6
Use buffering for HTTP responses on chunked requests
...
For non-chunked requests, the request is performed using the 'urlopen'
method that underlying uses buffering for the HTTP responses (for Python
2.7+ versions). For chunked requests though, the request is made via a
different code path and so the 'getresponse' method is called without
using buffering. So, the response is consumed per single byte via a
recv() call on the underlying socket.
This patch, fixes that issue to mimic the non-chucked request behavior.
2015-10-15 16:58:07 +03:00
Daniel Müller
d8f28f4bca
Fixed usage example in sessions.py
2015-10-15 14:32:35 +02:00
Cory Benfield
18a6b60110
v2.8.1
2015-10-13 13:55:09 +01:00
Cory Benfield
2df3c7c75d
Move to_native_string for methods to prepare()
2015-10-12 10:50:37 +01:00
Ian Cordasco
978a89d5a3
Merge pull request #2810 from Lukasa/certupdate
...
Update requests certificate bundle.
2015-10-08 11:12:09 -05:00
Ian Cordasco
931fd0eece
Merge pull request #2814 from Lukasa/issue/2813
...
Use general null check for JSON
2015-10-08 10:13:08 -05:00
Cory Benfield
3948a9562d
Use general null check for JSON
2015-10-08 14:53:35 +01:00
Cory Benfield
f7be4e5f28
NewConnectionErrors aren't timeouts.
...
This is a compatibility change, and should be removed in 2.8.0
2015-10-08 14:05:17 +01:00
Cory Benfield
23051979f4
Update requests certificate bundle.
...
This brings it up-to-date with the certifi 2015.9.6.2 release,
specifically its `weak.pem` bundle.
2015-10-08 08:09:53 +01:00
Ian Cordasco
e499b354c4
Merge pull request #2804 from Lukasa/final-2.8.0
...
Final 2.8.0
2015-10-05 11:21:40 -05:00