platform/upstream/python-requests.git
10 years agoAdd more interlinks between the documentation
Kevin Burke [Sat, 28 Dec 2013 07:43:55 +0000 (23:43 -0800)]
Add more interlinks between the documentation

Also fixes up tense in a few cases, and adds the `intersphinx` extension so we
can link to the urllib3 documentation when it is called out.

10 years agoMerge pull request #1823 from Lukasa/moredocs
Kenneth Reitz [Fri, 20 Dec 2013 14:21:04 +0000 (06:21 -0800)]
Merge pull request #1823 from Lukasa/moredocs

Update docs to highlight the value of r.encoding.

10 years agoUpdate docs to highlight the value of r.encoding.
Cory Benfield [Fri, 20 Dec 2013 09:15:12 +0000 (09:15 +0000)]
Update docs to highlight the value of r.encoding.

10 years agoMerge pull request #1807 from podshumok/fix-request-cookiejar-as-dict
Kenneth Reitz [Thu, 19 Dec 2013 20:38:52 +0000 (12:38 -0800)]
Merge pull request #1807 from podshumok/fix-request-cookiejar-as-dict

cookiejar.iteritems() is broken after 2.1.0 update

10 years agoMerge pull request #1816 from daftshady/master
Kenneth Reitz [Thu, 19 Dec 2013 20:38:34 +0000 (12:38 -0800)]
Merge pull request #1816 from daftshady/master

Re-raise DecodeError

10 years agoRe-raise DecodeError
daftshady [Thu, 19 Dec 2013 09:02:56 +0000 (18:02 +0900)]
Re-raise DecodeError

10 years agoMerge pull request #1808 from kennethreitz/fix-cookies-saved-on-redirect
Kenneth Reitz [Wed, 18 Dec 2013 15:56:30 +0000 (07:56 -0800)]
Merge pull request #1808 from kennethreitz/fix-cookies-saved-on-redirect

Fixes #1805

10 years agoMerge pull request #1810 from kennethreitz/swap-charade-for-chardet
Kenneth Reitz [Wed, 18 Dec 2013 15:52:55 +0000 (07:52 -0800)]
Merge pull request #1810 from kennethreitz/swap-charade-for-chardet

Swap charade for chardet

10 years agosplit cookiejar as dict test
Konstantin Podshumok [Wed, 18 Dec 2013 14:50:53 +0000 (18:50 +0400)]
split cookiejar as dict test

10 years agoUpdate the history and change the last last references to charade
Ian Cordasco [Wed, 18 Dec 2013 14:46:49 +0000 (08:46 -0600)]
Update the history and change the last last references to charade

10 years agoFix all remaining references to charade
Ian Cordasco [Wed, 18 Dec 2013 14:43:18 +0000 (08:43 -0600)]
Fix all remaining references to charade

10 years agoInitial work towards replacing charade
Ian Cordasco [Wed, 18 Dec 2013 14:42:12 +0000 (08:42 -0600)]
Initial work towards replacing charade

10 years agopreserve python2-like dict API for RequestCookieJar
Konstantin Podshumok [Wed, 18 Dec 2013 14:09:24 +0000 (18:09 +0400)]
preserve python2-like dict API for RequestCookieJar

10 years agoFixes #1805
Ian Cordasco [Wed, 18 Dec 2013 04:52:48 +0000 (22:52 -0600)]
Fixes #1805

Sure cookies are persisted to the session, but those new cookies are not added
to the next prepared request. We need to update that new request's CookieJar
with the new cookies.

10 years agofix regression with cookiejar.iteritems()
Konstantin Podshumok [Wed, 18 Dec 2013 02:56:53 +0000 (06:56 +0400)]
fix regression with cookiejar.iteritems()

10 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 16 Dec 2013 18:19:36 +0000 (13:19 -0500)]
Merge remote-tracking branch 'origin/master'

10 years ago8,000,000
Kenneth Reitz [Mon, 16 Dec 2013 18:19:30 +0000 (13:19 -0500)]
8,000,000

10 years agoMerge pull request #1792 from Lukasa/oops
Cory Benfield [Thu, 12 Dec 2013 16:21:38 +0000 (08:21 -0800)]
Merge pull request #1792 from Lukasa/oops

Fixup changelog with missing breaking change.

10 years agoFixup changelog with missing breaking change.
Cory Benfield [Thu, 12 Dec 2013 16:21:04 +0000 (16:21 +0000)]
Fixup changelog with missing breaking change.

10 years agoMerge pull request #1772 from mdbecker/make_morsel_to_cookie_more_pythonic
Kenneth Reitz [Fri, 6 Dec 2013 15:38:12 +0000 (07:38 -0800)]
Merge pull request #1772 from mdbecker/make_morsel_to_cookie_more_pythonic

Make morsel_to_cookie more pythonic

10 years agotest_requests: convert tests to py.test style
Michael Becker [Fri, 6 Dec 2013 15:08:42 +0000 (10:08 -0500)]
test_requests: convert tests to py.test style

10 years agocookies: Fix bugs found during CI
Michael Becker [Fri, 6 Dec 2013 02:54:29 +0000 (21:54 -0500)]
cookies: Fix bugs found during CI

10 years agocookies: Take a less cowardly approach
Michael Becker [Tue, 3 Dec 2013 16:00:25 +0000 (11:00 -0500)]
cookies: Take a less cowardly approach

Per discussion with @sigmavirus24, we'll take the less cowardly approach here.
"the RFC defines the Expires header as a string with the format we're assigning to ``time_template`` so checking if it is a string is unnecessary."

Crossing my fingers that this doesn't break anyones existing code...

10 years agoAUTHORS: Take credit
Michael Becker [Tue, 3 Dec 2013 03:15:16 +0000 (22:15 -0500)]
AUTHORS: Take credit

10 years agocookies: Replace type checks with try/except
Michael Becker [Tue, 3 Dec 2013 03:15:01 +0000 (22:15 -0500)]
cookies: Replace type checks with try/except

10 years agotest_requests: Add tests for morsel_to_cookie
Michael Becker [Tue, 3 Dec 2013 03:14:41 +0000 (22:14 -0500)]
test_requests: Add tests for morsel_to_cookie

These tests will ensure my changes to how we handle 'expires' don't cause any regressions.

10 years agoupdated CA Bundle!
Kenneth Reitz [Thu, 5 Dec 2013 22:51:10 +0000 (17:51 -0500)]
updated CA Bundle!

10 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Thu, 5 Dec 2013 22:45:05 +0000 (17:45 -0500)]
Merge remote-tracking branch 'origin/master'

10 years agolast changelog entry
Kenneth Reitz [Thu, 5 Dec 2013 22:44:56 +0000 (17:44 -0500)]
last changelog entry

10 years agofurther notes and version bump
Kenneth Reitz [Thu, 5 Dec 2013 22:41:25 +0000 (17:41 -0500)]
further notes and version bump

10 years agoMerge pull request #1770 from kmadac/master
Kenneth Reitz [Thu, 5 Dec 2013 22:40:44 +0000 (14:40 -0800)]
Merge pull request #1770 from kmadac/master

Implemetation of IP address ranges for no_proxy environment variable

10 years agohistory notes about v2.1
Kenneth Reitz [Thu, 5 Dec 2013 22:37:48 +0000 (17:37 -0500)]
history notes about v2.1

10 years agoMerge pull request #1669 from Lukasa/chunked
Kenneth Reitz [Thu, 5 Dec 2013 22:36:10 +0000 (14:36 -0800)]
Merge pull request #1669 from Lukasa/chunked

[WIP] Better chunked handling.

10 years agoMerge pull request #1776 from sigmavirus24/fix-1728
Kenneth Reitz [Thu, 5 Dec 2013 22:26:58 +0000 (14:26 -0800)]
Merge pull request #1776 from sigmavirus24/fix-1728

Fix 1728 (Fixed up from #1729)

10 years agoMerge pull request #1781 from Lukasa/ucliteral
Kenneth Reitz [Thu, 5 Dec 2013 22:00:58 +0000 (14:00 -0800)]
Merge pull request #1781 from Lukasa/ucliteral

Clean up #1779.

10 years agoRemove the unicode literals.
Cory Benfield [Thu, 5 Dec 2013 21:06:11 +0000 (21:06 +0000)]
Remove the unicode literals.

10 years agoMerge pull request #1779 from kracekumar/patch-2
Kenneth Reitz [Thu, 5 Dec 2013 19:44:06 +0000 (11:44 -0800)]
Merge pull request #1779 from kracekumar/patch-2

Made default_user_agent reusable

10 years agofunction is_ipv4_network renamed
Kamil Madac [Thu, 5 Dec 2013 10:15:52 +0000 (11:15 +0100)]
function is_ipv4_network renamed
more detailed check of cidr format

10 years agoTypo fixed
Kamil Madac [Thu, 5 Dec 2013 08:36:49 +0000 (09:36 +0100)]
Typo fixed

10 years agoBroad exception fixed
Kamil Madac [Thu, 5 Dec 2013 08:32:29 +0000 (09:32 +0100)]
Broad exception fixed

10 years agoMade default_user_agent reusable
kracekumar [Thu, 5 Dec 2013 06:41:35 +0000 (12:11 +0530)]
Made default_user_agent reusable

This is not exciting change, but will help for people who wants to change name of user agent alone. Also name can be unicode.

10 years agoTiny comment fix
Kamil Madac [Wed, 4 Dec 2013 14:11:10 +0000 (15:11 +0100)]
Tiny comment fix

10 years agoAdditional tests added
Kamil Madac [Wed, 4 Dec 2013 14:10:24 +0000 (15:10 +0100)]
Additional tests added

10 years agoAddress feedback from #1729
Ian Cordasco [Wed, 4 Dec 2013 12:45:18 +0000 (06:45 -0600)]
Address feedback from #1729

- Make the PreparedRequest's cookie jar an implementation detail

10 years agoStore the request cookiejar in PreparedRequest.cookies fix #1728
Chase Sterling [Thu, 7 Nov 2013 02:52:21 +0000 (21:52 -0500)]
Store the request cookiejar in PreparedRequest.cookies fix #1728

Conflicts:
requests/sessions.py

10 years agoAdd a test case for request cookies persisting to session. refs #1728
Chase Sterling [Thu, 7 Nov 2013 00:39:56 +0000 (19:39 -0500)]
Add a test case for request cookies persisting to session. refs #1728

10 years agoBetter comments
Kamil Madac [Wed, 4 Dec 2013 10:47:40 +0000 (11:47 +0100)]
Better comments

10 years agoTests added
Kamil Madac [Wed, 4 Dec 2013 09:54:36 +0000 (10:54 +0100)]
Tests added

10 years agoUnnecessary files kmadac.xml deleted
Kamil Madac [Wed, 4 Dec 2013 08:31:56 +0000 (09:31 +0100)]
Unnecessary files kmadac.xml deleted

10 years agoMerge branch 'master' of https://github.com/kmadac/requests
Kamil Madac [Wed, 4 Dec 2013 08:30:01 +0000 (09:30 +0100)]
Merge branch 'master' of https://github.com/kmadac/requests

10 years agoMerge pull request #1768 from Lukasa/credpct
Kenneth Reitz [Wed, 4 Dec 2013 01:36:00 +0000 (17:36 -0800)]
Merge pull request #1768 from Lukasa/credpct

Unencode usernames and passwords taken from URLs.

10 years agoMerge pull request #1764 from Lukasa/clog
Kenneth Reitz [Wed, 4 Dec 2013 01:35:02 +0000 (17:35 -0800)]
Merge pull request #1764 from Lukasa/clog

Prepare new release (2.1.0)?

10 years agoMerge pull request #1766 from Lukasa/qop
Kenneth Reitz [Wed, 4 Dec 2013 01:33:59 +0000 (17:33 -0800)]
Merge pull request #1766 from Lukasa/qop

Quote qop values in digest auth.

10 years agoMerge pull request #1657 from sigmavirus24/fix-session-hooks
Kenneth Reitz [Wed, 4 Dec 2013 01:33:42 +0000 (17:33 -0800)]
Merge pull request #1657 from sigmavirus24/fix-session-hooks

Honor session hooks

10 years agoMerge pull request #1713 from daftshady/master
Kenneth Reitz [Wed, 4 Dec 2013 01:33:33 +0000 (17:33 -0800)]
Merge pull request #1713 from daftshady/master

Fixed #1711

10 years agoMerge pull request #1775 from sigmavirus24/add-readme-to-packages
Kenneth Reitz [Wed, 4 Dec 2013 01:02:25 +0000 (17:02 -0800)]
Merge pull request #1775 from sigmavirus24/add-readme-to-packages

Add README to requests/packages

10 years agoRevert "Small test added"
Kamil Madac [Tue, 3 Dec 2013 15:41:07 +0000 (16:41 +0100)]
Revert "Small test added"

This reverts commit f0d3edf4090f3228f576cee665e3135052fbf303.

10 years agoMerge remote-tracking branch 'origin/master'
Kamil Madac [Tue, 3 Dec 2013 15:34:02 +0000 (16:34 +0100)]
Merge remote-tracking branch 'origin/master'

Conflicts:
test_requests.py

10 years agoSmall test added
Kamil Madac [Tue, 3 Dec 2013 15:30:47 +0000 (16:30 +0100)]
Small test added

10 years agoRedesigned no_proxy ip range imlementation to use only stdlib functions
Kamil Madac [Tue, 3 Dec 2013 15:23:08 +0000 (16:23 +0100)]
Redesigned no_proxy ip range imlementation to use only stdlib functions

10 years agoAdd README to requests/packages
Ian Cordasco [Tue, 3 Dec 2013 15:17:36 +0000 (09:17 -0600)]
Add README to requests/packages

- Hopefully people will read this before making changes to vendored libraries

10 years agoAdded kamil.madac to Authors
Kamil Madac [Mon, 2 Dec 2013 21:42:20 +0000 (22:42 +0100)]
Added kamil.madac to Authors

10 years agoAdded test for domain name no_proxy matching.
Kamil Madac [Mon, 2 Dec 2013 21:40:26 +0000 (22:40 +0100)]
Added test for domain name no_proxy matching.

10 years agoAdded possibility to use IP ranges (ex. 192.168.1.0/24) to no_proxy environment variable
Kamil Madac [Mon, 2 Dec 2013 21:32:29 +0000 (22:32 +0100)]
Added possibility to use IP ranges (ex. 192.168.1.0/24) to no_proxy environment variable

10 years agoUnquote the URL before extracting the auth.
Cory Benfield [Sun, 1 Dec 2013 10:28:49 +0000 (10:28 +0000)]
Unquote the URL before extracting the auth.

10 years agoTests for #1767.
Cory Benfield [Sun, 1 Dec 2013 10:23:09 +0000 (10:23 +0000)]
Tests for #1767.

10 years agoMerge remote-tracking branch 'upstream/pr/1765' into qop
Cory Benfield [Fri, 29 Nov 2013 16:44:13 +0000 (16:44 +0000)]
Merge remote-tracking branch 'upstream/pr/1765' into qop

10 years agoQuote qop values in digest auth.
Cory Benfield [Fri, 29 Nov 2013 08:37:25 +0000 (08:37 +0000)]
Quote qop values in digest auth.

10 years agoquote qop options in Digest Auth
佐藤 建太 [Fri, 29 Nov 2013 06:28:47 +0000 (15:28 +0900)]
quote qop options in Digest Auth

Based on RFC2617 (http://tools.ietf.org/html/rfc2617), the value of
'qop-options' directive should be quoted with double quotes:

    qop-options
         This directive is optional, but is made so only for backward
         compatibility with RFC 2069 [6]; it SHOULD be used by all
         implementations compliant with this version of the Digest
         scheme. If present, it is a quoted string of one or more
         tokens indicating the "quality of protection" values supported by
         the server.  The value "auth" indicates authentication; the
         value "auth-int" indicates authentication with
         integrity protection; see the

curl comamnd-line tool also appends these quotes. You can see this
by `curl -v --digest --user user:passwd http://example.com/digest-auth`.
Unfortunately, some minor server-side implementations seem to be sensitive
on this difference.

10 years agoMissed a couple.
Cory Benfield [Thu, 28 Nov 2013 18:37:45 +0000 (18:37 +0000)]
Missed a couple.

10 years agoPrepare changelog.
Cory Benfield [Thu, 28 Nov 2013 18:32:12 +0000 (18:32 +0000)]
Prepare changelog.

10 years agoMerge pull request #1762 from dstufft/update-urllib3
Kenneth Reitz [Wed, 27 Nov 2013 17:23:40 +0000 (09:23 -0800)]
Merge pull request #1762 from dstufft/update-urllib3

Update urllib3 to 929f1586

10 years agoUpdate urllib3 to 929f1586
Donald Stufft [Wed, 27 Nov 2013 02:41:15 +0000 (21:41 -0500)]
Update urllib3 to 929f1586

10 years agoremove unused import
daftshady [Tue, 26 Nov 2013 06:38:48 +0000 (15:38 +0900)]
remove unused import

10 years agoremove unnecessary try
daftshady [Wed, 6 Nov 2013 09:52:48 +0000 (18:52 +0900)]
remove unnecessary try

10 years agodouble try statement
daftshady [Tue, 5 Nov 2013 16:10:27 +0000 (01:10 +0900)]
double try statement

10 years agoupdate 'merge_cookies' not to create new instance.
daftshady [Tue, 5 Nov 2013 09:00:23 +0000 (18:00 +0900)]
update 'merge_cookies' not to create new instance.

10 years agomodified 'merge_cookies' and update tests.
daftshady [Tue, 5 Nov 2013 08:00:01 +0000 (17:00 +0900)]
modified 'merge_cookies' and update tests.
made sessions.py to use that method when merging cookies.

10 years agoupdate 'merge_cookies'
daftshady [Tue, 5 Nov 2013 07:15:35 +0000 (16:15 +0900)]
update 'merge_cookies'

10 years agoadded new method 'merge_cookies' and use it when merging session cookies with param...
daftshady [Tue, 5 Nov 2013 07:09:49 +0000 (16:09 +0900)]
added new method 'merge_cookies' and use it when merging session cookies with param cookies.

10 years agoadded test case related to #1711
daftshady [Tue, 29 Oct 2013 16:58:01 +0000 (01:58 +0900)]
added test case related to #1711

10 years agoFixed #1711
daftshady [Tue, 29 Oct 2013 14:18:03 +0000 (23:18 +0900)]
Fixed #1711

10 years agoMerge pull request #1760 from akitada/fix-hangs-on-streaming-uploads
Kenneth Reitz [Mon, 25 Nov 2013 19:40:10 +0000 (11:40 -0800)]
Merge pull request #1760 from akitada/fix-hangs-on-streaming-uploads

Fix hangs on streaming uploads with HTTPDigestAuth

10 years agoMerge pull request #1754 from Lukasa/verb_change
Kenneth Reitz [Mon, 25 Nov 2013 19:40:00 +0000 (11:40 -0800)]
Merge pull request #1754 from Lukasa/verb_change

Match the HTTPbis on HTTP 301.

10 years agoFix hangs on streaming uploads with HTTPDigestAuth
Akira Kitada [Mon, 25 Nov 2013 13:29:53 +0000 (22:29 +0900)]
Fix hangs on streaming uploads with HTTPDigestAuth

When using Digest Authentication, the client resends the same request
after the server responds with the 401 "Unauthorized". However, when
doing streaming uploads, it gets stuck because the body data (a
file-like object) is already consumed at the initial request.

The patch fixes this by rewinding the file-like object before
resending the request.

10 years agoCleanup the redirect if blocks.
Cory Benfield [Sun, 24 Nov 2013 11:13:49 +0000 (11:13 +0000)]
Cleanup the redirect if blocks.

10 years agoHandle 301s 'properly'.
Cory Benfield [Sun, 24 Nov 2013 11:09:00 +0000 (11:09 +0000)]
Handle 301s 'properly'.

10 years agoMerge pull request #1747 from daftshady/lowercase
Kenneth Reitz [Wed, 20 Nov 2013 09:05:15 +0000 (01:05 -0800)]
Merge pull request #1747 from daftshady/lowercase

#1746 don't lowercase the whole url

10 years agoMerge pull request #1742 from kevinburke/docs
Kenneth Reitz [Wed, 20 Nov 2013 09:02:38 +0000 (01:02 -0800)]
Merge pull request #1742 from kevinburke/docs

Add make target to build the documentation

10 years agoMerge pull request #1733 from ionrock/pickleable-responses
Kenneth Reitz [Wed, 20 Nov 2013 09:01:26 +0000 (01:01 -0800)]
Merge pull request #1733 from ionrock/pickleable-responses

Response and Request objects are pickleable.

10 years agoMerge pull request #1745 from nonm/master
Kenneth Reitz [Wed, 20 Nov 2013 08:58:21 +0000 (00:58 -0800)]
Merge pull request #1745 from nonm/master

Small fix broken cookie parse

10 years agouse geturl to lower scheme
daftshady [Tue, 19 Nov 2013 10:54:46 +0000 (19:54 +0900)]
use geturl to lower scheme

10 years agoissue #1746 : Don't lowercase the whole URL!
daftshady [Tue, 19 Nov 2013 09:59:22 +0000 (18:59 +0900)]
issue #1746 : Don't lowercase the whole URL!

10 years agoSmall fix broken cookie parse
nonm [Mon, 18 Nov 2013 21:32:59 +0000 (13:32 -0800)]
Small fix broken cookie parse

10 years agowording
Kevin Burke [Mon, 18 Nov 2013 02:39:01 +0000 (18:39 -0800)]
wording

10 years agoAdd target to build the documentation
Kevin Burke [Mon, 18 Nov 2013 02:38:15 +0000 (18:38 -0800)]
Add target to build the documentation

10 years agoMerge pull request #1739 from pengfei-xue/devel
Kenneth Reitz [Fri, 15 Nov 2013 18:51:47 +0000 (10:51 -0800)]
Merge pull request #1739 from pengfei-xue/devel

add coverage make target

10 years agoadd coverage make target
Pengfei Xue [Fri, 15 Nov 2013 10:00:18 +0000 (18:00 +0800)]
add coverage make target

10 years agoMerge pull request #1735 from Lukasa/wheel
Kenneth Reitz [Fri, 15 Nov 2013 09:33:38 +0000 (01:33 -0800)]
Merge pull request #1735 from Lukasa/wheel

Wheel

10 years agoMerge pull request #1717 from jvantuyl/master
Kenneth Reitz [Fri, 15 Nov 2013 09:33:03 +0000 (01:33 -0800)]
Merge pull request #1717 from jvantuyl/master

loosen URL handling for non-native URL schemes