Ian Cordasco [Mon, 23 Feb 2015 22:26:40 +0000 (16:26 -0600)]
Update HISTORY and version for v2.5.2
Ian Cordasco [Mon, 23 Feb 2015 22:02:30 +0000 (16:02 -0600)]
Ian Cordasco [Mon, 23 Feb 2015 22:01:06 +0000 (16:01 -0600)]
Merge pull request #2444 from Yasumoto/urllib_upgrade
Upgrade urllib3 to
490d3a227fadb626cd54a240b9d0922f849914b4
Cory Benfield [Sat, 21 Feb 2015 10:20:57 +0000 (10:20 +0000)]
Merge pull request #2453 from requiredfield/master
document combination of repeated response headers
requiredfield [Fri, 20 Feb 2015 18:20:18 +0000 (12:20 -0600)]
document combination of repeated response headers
Ian Cordasco [Fri, 20 Feb 2015 02:01:55 +0000 (20:01 -0600)]
Merge pull request #2450 from iKevinY/shields-badges
Update README to use Shields badges
Kevin Yap [Thu, 19 Feb 2015 06:36:16 +0000 (22:36 -0800)]
Update README to use Shields badges
Shields badges are friendlier to retina displays.
Joe Smith [Wed, 11 Feb 2015 18:22:10 +0000 (10:22 -0800)]
Ian Cordasco [Tue, 10 Feb 2015 19:05:56 +0000 (13:05 -0600)]
Merge pull request #2442 from Lukasa/certs
Update certificate bundle.
Cory Benfield [Tue, 10 Feb 2015 19:03:59 +0000 (19:03 +0000)]
Update certificate bundle.
Ian Cordasco [Fri, 6 Feb 2015 14:02:58 +0000 (08:02 -0600)]
Merge pull request #2440 from aquarion/patch-1
Update to use readthedocs.org instead of rtfd.org
The requests-toolbelt link can't mix HTTPS with the short domain rtfd.
Nicholas Avenell [Fri, 6 Feb 2015 13:46:38 +0000 (13:46 +0000)]
Update to use readthedocs.org instead of rtfd.org
https://toolbelt.rtfd.org causes an SSL error because the wildcard SSL cert is for *.readthedocs.org.
Cory Benfield [Wed, 4 Feb 2015 07:01:10 +0000 (07:01 +0000)]
Merge pull request #2438 from colindickson/master
add a timeout value to connection_error_invalid_port test to accelerate failure
Colin Dickson [Thu, 5 Feb 2015 02:05:03 +0000 (21:05 -0500)]
add a timeout value to connection_error_invalid_port test to accelerate failure
Colin Dickson [Wed, 4 Feb 2015 02:23:07 +0000 (21:23 -0500)]
split test_connection_error into two distinct tests, and changed "unknown url" test URL since fooobarbangbazbing.httpbin.org currently gives a valid response.
Cory Benfield [Tue, 3 Feb 2015 10:34:06 +0000 (10:34 +0000)]
Merge pull request #2437 from tomscytale/docs_query_param_array
quickstart: using a list as a value in query params
Tom S [Tue, 3 Feb 2015 09:16:38 +0000 (09:16 +0000)]
quickstart: using a list as a value in query params
Cory Benfield [Tue, 3 Feb 2015 06:50:11 +0000 (06:50 +0000)]
Merge pull request #2436 from colindickson/master
Fix for failing test: test_connection_error
Kenneth Reitz [Tue, 27 Jan 2015 18:24:34 +0000 (10:24 -0800)]
Merge pull request #2393 from sigmavirus24/bug/2356
Attempt to quote anyway if unquoting fails
Kenneth Reitz [Tue, 27 Jan 2015 18:24:25 +0000 (10:24 -0800)]
Merge pull request #2412 from sigmavirus24/remove-cruft
Remove entirely unnecessary and unused bits from requests.compat
Kenneth Reitz [Tue, 27 Jan 2015 18:23:18 +0000 (10:23 -0800)]
Merge pull request #2413 from sigmavirus24/bug/2411
Check that filenames are unicode or bytes
Kenneth Reitz [Tue, 27 Jan 2015 18:22:53 +0000 (10:22 -0800)]
Merge pull request #2415 from sigmavirus24/bug/2408
Move noncebit to the only place it is used
Cory Benfield [Fri, 23 Jan 2015 07:19:39 +0000 (07:19 +0000)]
Merge pull request #2420 from chriskuehl/master
Replace n-dash in HISTORY to workaround pip bug
Chris Kuehl [Fri, 23 Jan 2015 03:37:33 +0000 (19:37 -0800)]
HISTORY: replace n-dash to workaround pip bug
There exists a problem (maybe a bug?) in pip when using a locale like
`LC_ALL=C` (which is commonly used by CI environments and system
configuration tools such as Puppet), where the PKG-INFO file is decoded
using ascii, raising a UnicodeDecodeError when PKG-INFO contains
non-ASCII characters (such as the n-dash removed by this commit):
> Downloading/unpacking requests from https://pypi.python.org/packages/source/r/requests/requests-2.5.1.tar.gz
> Downloading requests-2.5.1.tar.gz (443Kb): 443Kb downloaded
> Running setup.py egg_info for package requests
>
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main
> status = self.run(options, args)
> File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
> File "/usr/lib/python3/dist-packages/pip/req.py", line 1014, in prepare_files
> req_to_install.assert_source_matches_version()
> File "/usr/lib/python3/dist-packages/pip/req.py", line 359, in assert_source_matches_version
> version = self.installed_version
> File "/usr/lib/python3/dist-packages/pip/req.py", line 351, in installed_version
> return self.pkg_info()['version']
> File "/usr/lib/python3/dist-packages/pip/req.py", line 318, in pkg_info
> data = self.egg_info_data('PKG-INFO')
> File "/usr/lib/python3/dist-packages/pip/req.py", line 261, in egg_info_data
> data = fp.read()
> File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
> return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)
I'm not able to reproduce this by installing the package directly, only by
installing another package which depends on it (via `install_requires`).
The command I used was `LC_ALL=C /usr/bin/pip-3.2 install --upgrade ocflib`,
with "pip 1.1 from /usr/lib/python3/dist-packages (python 3.2)" (which
is the packaged version for Debian 7).
Although this should probably be addressed ultimately in pip, replacing
this character in HISTORY is a pain-free and pragmatic way to help
developers and system administrators who may be stuck with old versions
of pip for many years to come.
Ian Cordasco [Mon, 19 Jan 2015 03:51:49 +0000 (21:51 -0600)]
Check that a filename is a basestring instance
Instead of only checking one or another type of string-like object that
we accept, let's be able to check both. Previously, we only checked if
the filename was an instance of the native str type which on Python 2
excluded unicode filenames and bytes-like filenames on Python 3.
Fixes #2411
Ian Cordasco [Tue, 20 Jan 2015 00:50:50 +0000 (18:50 -0600)]
Move noncebit to the only place it is used
Since we only allow for "auth" qop-value, hardcode it
Fixes #2408
Ian Cordasco [Mon, 19 Jan 2015 03:17:11 +0000 (21:17 -0600)]
Remove entirely unnecessary and unused bits from requests.compat
Ian Cordasco [Sat, 27 Dec 2014 02:02:16 +0000 (20:02 -0600)]
Attempt to quote anyway if unquoting fails
Fixes #2356
Ian Cordasco [Sat, 10 Jan 2015 02:55:54 +0000 (20:55 -0600)]
Kenneth Reitz [Fri, 9 Jan 2015 20:38:30 +0000 (15:38 -0500)]
Merge pull request #2375 from sigmavirus24/fix-imports-when-unbundled
Copy pip's import machinery wholesale
Kenneth Reitz [Thu, 8 Jan 2015 15:04:58 +0000 (10:04 -0500)]
drawn towards it rather than pushed away
Kenneth Reitz [Thu, 8 Jan 2015 15:01:39 +0000 (10:01 -0500)]
certifi
Kenneth Reitz [Thu, 8 Jan 2015 14:58:31 +0000 (09:58 -0500)]
certifi
Kenneth Reitz [Thu, 8 Jan 2015 14:55:40 +0000 (09:55 -0500)]
simpler button
Kenneth Reitz [Thu, 8 Jan 2015 14:52:56 +0000 (09:52 -0500)]
cleanups
Kenneth Reitz [Thu, 8 Jan 2015 14:52:50 +0000 (09:52 -0500)]
Requests Pro
Kenneth Reitz [Tue, 6 Jan 2015 05:56:47 +0000 (00:56 -0500)]
javascripts
Cory Benfield [Thu, 1 Jan 2015 08:28:11 +0000 (08:28 +0000)]
Merge pull request #2395 from shrayasr/happy-new-year
Changing year in all copyright information
Shrayas [Thu, 1 Jan 2015 03:34:50 +0000 (09:04 +0530)]
Changing year in all copyright information
- Happy new year! Thanks for this awesome library :)
Kenneth Reitz [Wed, 24 Dec 2014 15:15:37 +0000 (10:15 -0500)]
Merge pull request #2390 from Lukasa/cookiedocs
Clean up cookie docstrings, document cookie jar.
Cory Benfield [Wed, 24 Dec 2014 14:54:49 +0000 (14:54 +0000)]
Enhance documentation for clarity.
Cory Benfield [Wed, 24 Dec 2014 14:33:14 +0000 (14:33 +0000)]
Clean up cookie docs and display them.
Ian Cordasco [Tue, 23 Dec 2014 17:54:01 +0000 (11:54 -0600)]
Bump version to 2.5.1
Ian Cordasco [Tue, 23 Dec 2014 17:50:31 +0000 (11:50 -0600)]
Add release notes for 2.5.1
Ian Cordasco [Tue, 23 Dec 2014 17:40:35 +0000 (11:40 -0600)]
Merge pull request #2389 from sigmavirus24/bug/fix-digest-auth
Fix bug in renegotiating a nonce with the server
Ian Cordasco [Tue, 23 Dec 2014 16:40:31 +0000 (10:40 -0600)]
Fix bug in renegotiating a nonce with the server
If a session runs long enough (without constant activity) then the server can
expire the nonce the session has negotiated. If that happens the session will
get a new 401 response which we were immediately returning to the user. A user
would then have to essentially reinitialize session.auth each time they get an
unexpected 401.
Also, there's no need for setattr calls when we can simply assign the
attribute on the instance.
Ian Cordasco [Wed, 17 Dec 2014 04:49:24 +0000 (22:49 -0600)]
Fix error handling on Python 3
Ian Cordasco [Wed, 17 Dec 2014 04:18:51 +0000 (22:18 -0600)]
Merge branch 'master' of https://github.com/ContinuousFunction/requests into pr/2344
Cory Benfield [Tue, 16 Dec 2014 09:19:50 +0000 (09:19 +0000)]
Merge pull request #2382 from daftshady/exception
catch exception more specifically
daftshady [Tue, 16 Dec 2014 07:55:13 +0000 (16:55 +0900)]
catch exception more specifically in Response.ok
ContinuousFunction [Mon, 15 Dec 2014 18:41:10 +0000 (13:41 -0500)]
Uncommented test in test_requests.py
Uncommented test_sesion_pickling in test_requests.py and ran the file to
make sure the test passes.
ContinuousFunction [Mon, 15 Dec 2014 18:24:06 +0000 (13:24 -0500)]
Merge branch 'master' of https://github.com/kennethreitz/requests
Cory Benfield [Mon, 15 Dec 2014 07:59:47 +0000 (07:59 +0000)]
Merge pull request #2381 from namlede/patch-1
Fix a typo in a comment
Ben Edelman [Mon, 15 Dec 2014 06:37:19 +0000 (01:37 -0500)]
Fix a typo in a comment
I just fixed a minor typo: "throws" is misspelled as "thows".
Ian Cordasco [Sat, 13 Dec 2014 19:49:04 +0000 (13:49 -0600)]
Merge pull request #2379 from arthurdarcet/master
utils.guess_filename fails if the given parameter looks like a file object but has a non-string name attribute
Ian Cordasco [Sat, 13 Dec 2014 03:12:31 +0000 (21:12 -0600)]
Give proper attribution to pip
Arthur Darcet [Fri, 12 Dec 2014 15:11:32 +0000 (16:11 +0100)]
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
Ian Cordasco [Tue, 9 Dec 2014 02:48:40 +0000 (20:48 -0600)]
Copy pip's import machinery wholesale
Ian Cordasco [Mon, 8 Dec 2014 23:46:08 +0000 (17:46 -0600)]
Merge pull request #2374 from krvc/fix_link
Updated the broken link to twitter streaming API documentation
rakesh [Mon, 8 Dec 2014 20:29:55 +0000 (01:59 +0530)]
Updated the broken link to twitter streaming API documentation
Ian Cordasco [Mon, 8 Dec 2014 18:40:44 +0000 (12:40 -0600)]
Merge pull request #2373 from frewsxcv/patch-1
Enable GitHub syntax highlighting on README
Corey Farwell [Mon, 8 Dec 2014 18:04:27 +0000 (13:04 -0500)]
Enable GitHub syntax highlighting on README
Kenneth Reitz [Wed, 3 Dec 2014 04:46:10 +0000 (20:46 -0800)]
Merge pull request #2363 from sigmavirus24/fix-tests
Update tests to work offline
Ian Cordasco [Mon, 1 Dec 2014 23:22:17 +0000 (17:22 -0600)]
Merge pull request #2365 from sigmavirus24/release/2.5
Release v2.5.0
Ian Cordasco [Mon, 1 Dec 2014 23:03:24 +0000 (17:03 -0600)]
Bump version to 2.5.0
Ian Cordasco [Mon, 1 Dec 2014 23:02:42 +0000 (17:02 -0600)]
Add updates for 2.5.0
Ian Cordasco [Mon, 1 Dec 2014 22:21:41 +0000 (16:21 -0600)]
Update tests to work offline
Kenneth Reitz [Mon, 1 Dec 2014 19:45:27 +0000 (14:45 -0500)]
Merge pull request #2216 from sigmavirus24/retries-take-2
Retries logic
Kenneth Reitz [Mon, 1 Dec 2014 19:40:32 +0000 (14:40 -0500)]
updatee chardet, urllib3
Kenneth Reitz [Sun, 30 Nov 2014 19:12:43 +0000 (14:12 -0500)]
Merge pull request #2349 from sigmavirus24/fix-pickling
Properly serialize RecentlyUsedContainers for cache
Kenneth Reitz [Sun, 30 Nov 2014 19:12:04 +0000 (14:12 -0500)]
Merge pull request #2348 from danmichaelo/master
Docs: Add more section labels for referencing
Kenneth Reitz [Sun, 30 Nov 2014 19:11:52 +0000 (14:11 -0500)]
Merge pull request #2353 from mattrobenolt/patch-1
url was already parsed, don't urlparse twice
Matt Robenolt [Mon, 24 Nov 2014 01:54:44 +0000 (17:54 -0800)]
url was already parsed, don't urlparse twice
Ian Cordasco [Tue, 18 Nov 2014 04:13:35 +0000 (22:13 -0600)]
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
ContinuousFunction [Mon, 17 Nov 2014 00:39:08 +0000 (16:39 -0800)]
Changed ConnectionError to InvalidURL
Dan Michael O. Heggø [Mon, 17 Nov 2014 10:39:33 +0000 (11:39 +0100)]
Docs: Add more section labels for referencing
so sections can be linked from other projects using Intersphinx
ContinuousFunction [Sun, 16 Nov 2014 00:58:25 +0000 (16:58 -0800)]
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.
Ian Cordasco [Sat, 25 Oct 2014 13:31:03 +0000 (08:31 -0500)]
Update HTTPAdapter docstring
Ian Cordasco [Sat, 25 Oct 2014 03:23:15 +0000 (22:23 -0500)]
Add last few changes and add a quick test
Ian Cordasco [Sat, 25 Oct 2014 02:58:11 +0000 (21:58 -0500)]
Update urllib3 to
df4ec5cce1
Ian Cordasco [Wed, 10 Sep 2014 16:57:20 +0000 (11:57 -0500)]
Update how we handle retries to be consistent with documentation
Kenneth Reitz [Wed, 12 Nov 2014 17:36:03 +0000 (12:36 -0500)]
Merge pull request #2309 from sigmavirus24/add-deprecation-warnings
Add DeprecationWarnings to inform users of plans
Kenneth Reitz [Wed, 12 Nov 2014 17:35:24 +0000 (12:35 -0500)]
Merge pull request #2308 from kevinburke/read-timeout-retry
Note about read timeout errors and max_retries
Kenneth Reitz [Wed, 12 Nov 2014 17:34:48 +0000 (12:34 -0500)]
Merge pull request #2332 from asnelzin/fix-2329
Add overriding Content-Length
Kenneth Reitz [Wed, 12 Nov 2014 17:34:14 +0000 (12:34 -0500)]
Merge pull request #2326 from sigmavirus24/close-functional-sessions
Close sessions created in the functional API
Ian Cordasco [Wed, 12 Nov 2014 15:53:32 +0000 (09:53 -0600)]
Merge pull request #2333 from akitada/reinit-pos
Fix HTTPDigestAuth not to treat non-file as a file
Akira Kitada [Wed, 12 Nov 2014 14:46:22 +0000 (23:46 +0900)]
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.
Alexander Nelzin [Wed, 12 Nov 2014 12:35:27 +0000 (15:35 +0300)]
Fixed.
Alexander Nelzin [Wed, 12 Nov 2014 12:23:23 +0000 (15:23 +0300)]
Added test for overriding Content-Length.
Ian Cordasco [Fri, 7 Nov 2014 20:18:41 +0000 (14:18 -0600)]
Merge pull request #2299 from mattrobenolt/master
Cap the redirect_cache size to prevent memory abuse
Ian Cordasco [Fri, 7 Nov 2014 14:55:17 +0000 (08:55 -0600)]
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
Ian Cordasco [Fri, 7 Nov 2014 14:12:23 +0000 (08:12 -0600)]
Merge pull request #2323 from Lukasa/strict
Pass strict to urllib3.
Cory Benfield [Fri, 7 Nov 2014 08:19:18 +0000 (09:19 +0100)]
Pass strict to urllib3.
Kenneth Reitz [Sat, 1 Nov 2014 14:04:29 +0000 (10:04 -0400)]
Merge pull request #2253 from yossigo/digest_redirect_fix
A fix for #1979: repeat HTTP digest authentication after redirect.
Kenneth Reitz [Sat, 1 Nov 2014 14:04:09 +0000 (10:04 -0400)]
Merge pull request #2317 from sigmavirus24/bug/2316
Use to_native_string instead of builtin_str
Ian Cordasco [Sat, 1 Nov 2014 02:20:04 +0000 (21:20 -0500)]
Use to_native_string instead of builtin_str
Fixes #2316
Kevin Burke [Mon, 27 Oct 2014 16:56:18 +0000 (09:56 -0700)]
Update documentation about max_retries to reflect code
Matt Robenolt [Fri, 24 Oct 2014 03:49:18 +0000 (20:49 -0700)]
Cap the redirect_cache size to prevent memory abuse
Ian Cordasco [Mon, 27 Oct 2014 00:32:46 +0000 (19:32 -0500)]
Merge pull request #2306 from ssadler/fix-failing-test-test_prepare_unicode_url
Fix failing test test_prepare_unicode_url
Ian Cordasco [Mon, 27 Oct 2014 00:24:37 +0000 (19:24 -0500)]
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.