Ian Cordasco
751b35c346
Attempt to quote anyway if unquoting fails
...
Fixes #2356
2015-01-18 21:07:43 -06:00
Ian Cordasco
bd3cf95e34
Fix error handling on Python 3
2014-12-16 22:49:24 -06:00
Ian Cordasco
386c589ba0
Merge branch 'master' of https://github.com/ContinuousFunction/requests into pr/2344
2014-12-16 22:18:51 -06:00
daftshady
925e975295
catch exception more specifically in Response.ok
2014-12-16 16:55:13 +09:00
ContinuousFunction
39090cfba6
Merge branch 'master' of https://github.com/kennethreitz/requests
2014-12-15 13:24:06 -05:00
Ben Edelman
01b58ba04e
Fix a typo in a comment
...
I just fixed a minor typo: "throws" is misspelled as "thows".
2014-12-15 01:37:19 -05:00
Arthur Darcet
e8d02ea0bb
utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute
...
e.g. a cherrypy uploaded file behave like a regular file, except that its name attribute is an int and passing it directly to requests fails because of that
2014-12-12 17:32:43 +01:00
Ian Cordasco
33b25176b8
Bump version to 2.5.0
2014-12-01 17:03:24 -06:00
kennethreitz
90857b8b59
Merge pull request #2216 from sigmavirus24/retries-take-2
...
Retries logic
2014-12-01 14:45:27 -05:00
Kenneth Reitz
7aa6c62d6d
updatee chardet, urllib3
2014-12-01 14:40:32 -05:00
kennethreitz
53d02381e2
Merge pull request #2349 from sigmavirus24/fix-pickling
...
Properly serialize RecentlyUsedContainers for cache
2014-11-30 14:12:43 -05:00
Matt Robenolt
2a5364cf72
url was already parsed, don't urlparse twice
2014-11-23 17:54:44 -08:00
Ian Cordasco
c8baf88125
Properly serialize RecentlyUsedContainers for cache
...
RecentlyUsedContainers are threadsafe so they require a lock and as such
cannot be serialized with pickle directly. To handle it, we need to
convert it to a dictionary first and then back when deserializing.
Fixes #2345
2014-11-17 22:16:32 -06:00
ContinuousFunction
3246b1fe17
Changed ConnectionError to InvalidURL
2014-11-17 20:06:24 -08:00
ContinuousFunction
087a27aba9
Partially addresses Issue #1572
...
Addresses the LocationParseError but not the DecodeError from
kennethreitz#1572. When running
test_requests.py, I got an error in test_session_pickling which resulted
in a TypeError. I'm not sure of the reason for the TypeError but I have
commented out that test.
2014-11-15 16:58:25 -08:00
Ian Cordasco
adf475ef82
Update HTTPAdapter docstring
2014-11-12 13:58:03 -06:00
Ian Cordasco
2eb7e3c80b
Add last few changes and add a quick test
2014-11-12 13:56:28 -06:00
Ian Cordasco
f54a4e3de1
Update urllib3 to df4ec5cce1
2014-11-12 13:56:28 -06:00
Ian Cordasco
2bc7762cb6
Update how we handle retries to be consistent with documentation
2014-11-12 13:56:28 -06:00
kennethreitz
9dc660269f
Merge pull request #2309 from sigmavirus24/add-deprecation-warnings
...
Add DeprecationWarnings to inform users of plans
2014-11-12 12:36:03 -05:00
kennethreitz
1601387cbe
Merge pull request #2308 from kevinburke/read-timeout-retry
...
Note about read timeout errors and max_retries
2014-11-12 12:35:24 -05:00
kennethreitz
45ef1f8eeb
Merge pull request #2332 from asnelzin/fix-2329
...
Add overriding Content-Length
2014-11-12 12:34:48 -05:00
kennethreitz
e4ddca0f8b
Merge pull request #2326 from sigmavirus24/close-functional-sessions
...
Close sessions created in the functional API
2014-11-12 12:34:14 -05:00
Akira Kitada
67c505781c
Fix HTTPDigestAuth not to treat non-file as a file
...
Ensure pos is set to None when the body is not a file
so that HTTPDigestAuth detects the type of the body correctly.
2014-11-13 00:51:35 +09:00
Alexander Nelzin
ee50afef59
Fixed.
2014-11-12 15:35:27 +03:00
Ian Cordasco
431282e778
Merge pull request #2299 from mattrobenolt/master
...
Cap the redirect_cache size to prevent memory abuse
2014-11-07 14:18:41 -06:00
Ian Cordasco
3155bc9936
Close sessions created in the functional API
...
This is related to #1882 and #1685 . By calling close on the session, we
clear the PoolManager operated by the Session and close all sockets.
Fixes #1882
Partially-fixes #1685
2014-11-07 08:55:18 -06:00
Cory Benfield
f28bde7250
Pass strict to urllib3.
2014-11-07 09:19:18 +01:00
kennethreitz
122c92e590
Merge pull request #2253 from yossigo/digest_redirect_fix
...
A fix for #1979 : repeat HTTP digest authentication after redirect.
2014-11-01 10:04:29 -04:00
Ian Cordasco
29ef108158
Use to_native_string instead of builtin_str
...
Fixes #2316
2014-10-31 21:20:04 -05:00
Kevin Burke
a703e24573
Update documentation about max_retries to reflect code
2014-10-27 09:56:18 -07:00
Matt Robenolt
387c8f852c
Cap the redirect_cache size to prevent memory abuse
2014-10-27 09:20:06 -07:00
Ian Cordasco
d505b94fa4
Add DeprecationWarnings to inform users of plans
...
After a long discussion in IRC and on several issues, the developers of
requests have decided to remove specific functions from requests.utils
in version 3.0.0. To give users ample time to prepare for this, we've
added DeprecationWarnings long in advance. See also the planning of this
in issue #2266 .
2014-10-26 19:24:41 -05:00
Val Tenyotkin
3602690886
Changing parameter name newline ==> delimiter.
2014-10-24 16:37:35 -07:00
Yossi Gottlieb
3d8823cafc
Clean up handle_redirect.
2014-10-23 13:46:44 +03:00
Val Tenyotkin
f5ff05be1e
Adding a custom line delimiter to iter_lines()
2014-10-21 18:03:11 -07:00
Michael DeLay
8339b60fd5
Made more better
2014-10-10 09:58:30 -07:00
mikecool1000
ce1ac88543
Fixed #2250
2014-10-09 12:22:18 -07:00
mikecool1000
4594667f07
Update utils.py
...
Fixed -2250
2014-10-08 19:26:07 -07:00
Yossi Gottlieb
6ff6f756c0
Clean up, support all redirects, fix potential endless 401 loop.
2014-10-08 00:06:01 +03:00
Kenneth Reitz
46d646064c
v2.4.3
2014-10-06 05:44:25 -04:00
kennethreitz
6da438dabd
Merge pull request #2268 from sigmavirus24/fix-params
...
Re-order params for backwards compat
2014-10-06 05:40:03 -04:00
Ian Cordasco
0e4efab270
Re-order params for backwards compat
2014-10-05 18:55:59 -05:00
MinRK
ca2ebc5b68
allow unicode URLs on Python 2
...
on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError,
but only AttributeError is caught.
This only calls decode on known bytes objects.
2014-10-05 16:30:11 -07:00
kennethreitz
5850b1f53b
Merge pull request #2249 from t-8ch/fix_2247
...
fix #2247
2014-10-05 13:19:14 -04:00
Kenneth Reitz
779c001e44
requests v2.4.2
2014-10-05 13:15:33 -04:00
Kenneth Reitz
79f56e2e7e
fix documentation for utils.get_unicode_from_response() :)
2014-10-05 13:14:38 -04:00
kennethreitz
65cdccb70f
Merge pull request #2241 from tijko/master
...
raise RuntimeError when a single streamed request calls *iter methods th...
2014-10-05 12:48:40 -04:00
kennethreitz
1e79cf6a47
Merge pull request #2258 from willingc/add-json
...
Add json parameter
2014-10-05 12:46:09 -04:00
Ian Cordasco
b1f3a2dd66
Remove timeout from __attrs__
...
We do not allow the user to set the timeout value on the Session any longer so
this is extraneous
2014-10-04 23:04:36 -05:00