Thomas Grainger
fcb272cc36
remove seemingly redundant pyflakes references
2017-04-20 13:23:56 +01:00
shmuelamar
722b1dae96
fix handle of non-ascii location on redirects
2017-04-18 00:08:59 +03:00
shmuelamar
a3e597c171
fix unicode decode error on py2 when handling redirect without scheme
2017-04-14 16:20:27 +03:00
Xuanwo
1cd173a82c
Fix a typo in utils
...
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com >
2017-04-08 20:56:28 +08:00
Ruben Dura Tari
ead8fba84b
Fixes DeprecationWarnings in Python 3.6 due to invalid escape sequences. Fixes #3954
2017-04-05 15:51:58 +01:00
Cory Benfield
342096a3b9
Merge pull request #3943 from leo-b/timeout
...
HTTPAdapter.send() timeout defaults
2017-04-03 16:45:11 +01:00
Anthony Shaw
a63ae02e34
Update sessions.py
...
Update docstring for the session init to explain what the cert kwarg types are for.
2017-04-02 20:29:48 +10:00
Alexander 'Leo' Bergolth
4c13678587
remove change for timeout=None
2017-03-30 16:20:39 +02:00
Alexander 'Leo' Bergolth
1e7ae063ce
whitespace
2017-03-29 18:20:11 +02:00
Alexander 'Leo' Bergolth
fe58c6fdd6
small rearrangement
2017-03-29 18:01:18 +02:00
Alexander 'Leo' Bergolth
a180db963f
allow urllib3 Timeout objects as timeout parameter for HTTPAdapter.send()
...
omit timeout argument when calling urlopen on the connection. this allows setting a default timeout at connection pool level:
adapter.poolmanager.connection_pool_kw['timeout'] = urllib3.Timeout(...)
2017-03-29 16:53:28 +02:00
Bastien Gérard
4207867aaf
PR review fixes:
...
- used httpbin_secure for tests
- updated docstring related to `verify` param"
- used TLS acronym instead of SSL
2017-03-22 21:28:38 +01:00
Bastien Gérard
42ec8b08f2
#3927 fixes based on review
2017-03-22 21:28:38 +01:00
Bastien Gérard
7d8b87c37f
#3926 raise IOError when providing an invalid path to a CA bundle or certificate files
2017-03-22 21:28:38 +01:00
Marcos Dione
2e9e944bc1
Removed sentence as suggested.
...
Fair enough...
2017-03-07 10:34:21 +01:00
Marcos Dione
16f6e25176
Add mention to list od tuples as data param.
...
`requests.request` accepts list of tuples in the `data` param, but thereś no mention of it in the docs.
2017-03-07 10:26:51 +01:00
Ian Cordasco
8e6e47af43
Update implementation of TimedCache object
...
There were some odd decisions made about the implementation of some of
the required methods for MuttableMapping in the TimedCache object. This
cleans those up and makes the implementation, ever so slightly, easier
to read.
See also #3885
2017-03-04 09:03:03 -06:00
Lutz Horn
3d22f9f5ab
fixed #3894 by mentioning form-encoding of dict
...
The optional `data` parameter will be form-encoded, if a dictionary is provided.
2017-03-01 16:00:08 +01:00
Victor Pfautz
2aaf6ac038
Fixed some typos ( #3892 )
...
* Fixed some typos
2017-02-27 16:25:10 +00:00
David Fontenot
c121b98c4e
wrapped proxy_bypass() with cache lookup
...
Used to alleviate long gethostbyaddr calls
Made new TimedCache and decorator to wrap
a function with a cache
* Entries looked up older than a minute (default amount)
are evicted.
* When full, evicts the oldest entry
2017-02-23 14:04:16 -08:00
Ian Cordasco
8e049bd9eb
Update docstrings for Response.__{bool,nonzero}__
...
Like the docstring added to Response.ok these were misleading and
vaguely incorrect. Better to be explicit than implicit.
2017-02-16 07:21:15 -06:00
Ian Cordasco
7a281e74ec
Correct docstring for Response.ok
2017-02-16 07:15:37 -06:00
Mislav Cimperšak
3664682539
added docstring for response.ok property
2017-02-16 10:06:28 +01:00
Nate Prewitt
f47aff68f1
properly handled failed seek
2017-02-14 07:45:41 -07:00
kennethreitz
6bd6249051
Merge pull request #3865 from JohnVillalovos/master
...
Allow use of 'no_proxy' in the proxies argument
2017-02-10 15:50:10 -06:00
jonathan vanasco
70f31a3166
* initial attempt at get_redirect_target
...
* removing the `i` from the redirect detection while-loop
2017-02-10 13:53:23 -05:00
John L. Villalovos
85400d8d67
Allow use of 'no_proxy' in the proxies argument
...
Add the ability to add 'no_proxy' and a value to the 'proxies'
dictionary argument.
https://github.com/kennethreitz/requests/issues/2817
Closes gh-2817
2017-02-10 09:41:54 -08:00
Marcos Dione
571d2c2cd7
Fix syntax error
...
I can only wonder how I managed to write it like that...
2017-02-07 16:57:17 +01:00
Marcos Dione
b00d8bf474
Proper version, no bugs, shorter.
2017-02-06 21:44:28 +01:00
Marcos Dione
593734b770
do not convert /o\ into /O\
2017-02-06 17:27:16 +01:00
Matthew Medal
8a58427d8a
Only send HTTPDigestAuth on 4xx challenges
...
Resolves : #3772
2017-01-27 12:56:50 -08:00
Ian Cordasco
b2289cd2d5
Bump version for 2.13.0
...
Add release notes for 2.13.0
2017-01-24 06:32:12 -06:00
Ian Cordasco
af1b542e20
Update idna to v2.2.0
2017-01-24 06:20:44 -06:00
Ian Cordasco
b5704a63ca
Update urllib3 to 1.20.0
...
Further, fix the Makefile to pull urllib3 from the release branch.
git-describe works based on the most recent commit but all of the
nearest commits in the graph for urllib3 are on the release branch
(since the release branch is never merged back to master).
2017-01-24 06:16:54 -06:00
Cory Benfield
4c53915a21
Merge pull request #3789 from moin18/3780
...
3780: Lazy load idna library
2017-01-19 09:19:00 +00:00
Cory Benfield
5dcc039457
v2.12.5
2017-01-18 12:41:46 +00:00
Moin
fae3f92c34
lazily load idna library
2017-01-17 20:34:15 +05:30
Peter Inglesby
2432dd6208
Add default value of allow_redirects to docs
2017-01-12 17:00:42 +00:00
Герасименко Евгений
1c34ac3ae6
Fixed detection of utf-32-be by BOM.
2016-12-29 10:21:32 +07:00
John Dingee
5aa6661587
fix urllib3 documentation link ( #3785 )
2016-12-21 13:08:45 -05:00
kennethreitz
789f21807d
python 2.6 compatibiliby
2016-12-20 13:16:14 -05:00
Cory Benfield
1285f576ae
v2.12.4
2016-12-14 11:37:52 +00:00
Ian Cordasco
fae6701478
Add deprecation warnings for 3.0
...
Add extra test parameter for basic auth encoding
2016-12-09 08:43:54 -06:00
Nate Prewitt
576b447a37
adding string casting for non-bytes values
2016-12-08 21:13:14 -07:00
Cory Benfield
c398ab0e7d
v2.12.3
2016-12-01 10:48:35 +00:00
Cory Benfield
402a55b647
Revert "Restrict URL preparation to HTTP/HTTPS"
...
This reverts commit 34af72c87d .
2016-11-30 21:19:31 +00:00
Cory Benfield
ca15d48087
v2.12.2
2016-11-30 12:38:26 +00:00
Cory Benfield
5c4549493b
Merge pull request #3695 from nateprewitt/idna_bypass
...
idna bypass
2016-11-25 13:18:01 +00:00
Nicola Soranzo
f897be58bf
Make Response.content return None if raw is None
...
Add test.
2016-11-24 12:54:26 +00:00
Nicola Soranzo
4f428228d7
Make Response.content() return None if status_code is None
...
Fix #3698 .
2016-11-23 21:15:07 +00:00