Priit Laes [Sat, 7 Mar 2015 07:40:25 +0000 (09:40 +0200)]
Add testcase to demonstrate r.iter_lines() reentrancy issue
Ian Cordasco [Wed, 4 Mar 2015 22:20:33 +0000 (16:20 -0600)]
Merge pull request #2429 from kennethreitz/sigmavirus24/docs/support
Update support documentation to be more accurate
Cory Benfield [Wed, 4 Mar 2015 20:16:25 +0000 (20:16 +0000)]
Add Lukasa's GPG key fingerprint.
Ian Cordasco [Wed, 4 Mar 2015 14:11:39 +0000 (08:11 -0600)]
Add PGP Key fingerprints
Ian Cordasco [Wed, 4 Mar 2015 13:49:12 +0000 (07:49 -0600)]
Merge pull request #2466 from sigmavirus24/bug/2465
Only add VendorAliases for vendored dependencies
Ian Cordasco [Tue, 3 Mar 2015 20:01:31 +0000 (14:01 -0600)]
Merge pull request #2468 from scholer/master
Support for bytearray when creating Request with files argument, just like str and bytes.
Rasmus Scholer (TimelineX) [Tue, 3 Mar 2015 19:37:39 +0000 (14:37 -0500)]
test_can_send_bytes_bytearray_objects_with_files test now uses string input, not float.
Rasmus Scholer (TimelineX) [Tue, 3 Mar 2015 02:41:00 +0000 (03:41 +0100)]
Created test case for using bytes and bytearray objects with files argument to Request.
Rasmus Scholer (TimelineX) [Tue, 3 Mar 2015 01:44:52 +0000 (02:44 +0100)]
models.RequestEncodingMixin._encode_files now takes bytearray as fp in addition to the currently supported bytes and str input.
Ian Cordasco [Sun, 1 Mar 2015 05:04:22 +0000 (23:04 -0600)]
Fix when packages are unvendored
When working these changes back upstream to pip, we realized that the
previous fix wasn't ideal since unvendoring the packages broke the
imports. For example, if urllib3 were unvendored, then the following
would fail:
from requests.packages import urllib3
Ian Cordasco [Sun, 1 Mar 2015 02:19:13 +0000 (20:19 -0600)]
Add a test to ensure the alias does not regress
Ian Cordasco [Sun, 1 Mar 2015 02:13:45 +0000 (20:13 -0600)]
Only alias the imports for vendored dependencies
While discussion the issue, Donald Stufft (@dstufft) and I realized the
simplest solution is to simply add an alias per vendored dependency. The
resulting changes are simple and effective. It prevents the issue in
2.5.2 and 2.5.3 where the following would work:
from requests.packages import webbrowser
This now appropriately raises an ImportError.
Closes #2465
Cory Benfield [Tue, 24 Feb 2015 16:32:15 +0000 (16:32 +0000)]
Merge pull request #2459 from kennethreitz/release-notes/2.5.3
Update HISTORY and release version for 2.5.3
Ian Cordasco [Tue, 24 Feb 2015 16:30:17 +0000 (10:30 -0600)]
Update HISTORY and release version for 2.5.3
Cory Benfield [Tue, 24 Feb 2015 16:18:16 +0000 (16:18 +0000)]
Merge pull request #2458 from kennethreitz/revert-2442-certs
Revert "Update certificate bundle."
Ian Cordasco [Tue, 24 Feb 2015 15:44:51 +0000 (09:44 -0600)]
Revert "Update certificate bundle."
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
Ian Cordasco [Thu, 29 Jan 2015 02:48:22 +0000 (20:48 -0600)]
Fix typo. Use smaller paragraphs. Add CVE list
Ian Cordasco [Wed, 28 Jan 2015 14:58:43 +0000 (08:58 -0600)]
Add a missing comma
Ian Cordasco [Wed, 28 Jan 2015 14:58:05 +0000 (08:58 -0600)]
Add Cory's twitter account
Added some more detail to the Vulnerability section
Ian Cordasco [Wed, 28 Jan 2015 14:16:05 +0000 (08:16 -0600)]
Update support documentation to be more accurate
We were missing instructions to report security vulnerabilities,
and all of the documentation referred to Kenneth as the only
source of support. We were also missing a link to StackOverflow.
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