services/python-requests.git
11 years agoRevert "Fix for the issue https://github.com/kennethreitz/requests/issues/1280"
Kenneth Reitz [Tue, 2 Apr 2013 12:13:46 +0000 (08:13 -0400)]
Revert "Fix for the issue https://github.com/kennethreitz/requests/issues/1280"

This reverts commit ca0aea640d0cce01c126220b74362c9014cabbd6.

11 years agoMerge pull request #1281 from KamilSzot/Issue_kennethreitz_requests_issues_1280
Kenneth Reitz [Tue, 2 Apr 2013 11:44:59 +0000 (04:44 -0700)]
Merge pull request #1281 from KamilSzot/Issue_kennethreitz_requests_issues_1280

Fix for the issue https://github.com/kennethreitz/requests/issues/1280

11 years agoFix for the issue https://github.com/kennethreitz/requests/issues/1280
Kamil Szot [Tue, 2 Apr 2013 11:42:40 +0000 (13:42 +0200)]
Fix for the issue https://github.com/kennethreitz/requests/issues/1280

11 years agoMerge pull request #1278 from t-8ch/patch-1
Kenneth Reitz [Tue, 2 Apr 2013 04:36:49 +0000 (21:36 -0700)]
Merge pull request #1278 from t-8ch/patch-1

fix tiny typo in HISTORY.rst

11 years agoMerge pull request #1277 from pborreli/typos
Kenneth Reitz [Tue, 2 Apr 2013 04:36:39 +0000 (21:36 -0700)]
Merge pull request #1277 from pborreli/typos

Fixed typos

11 years agoMerge pull request #1276 from alex/patch-1
Kenneth Reitz [Tue, 2 Apr 2013 03:42:22 +0000 (20:42 -0700)]
Merge pull request #1276 from alex/patch-1

is should not be used for comparing numbers

11 years agofix tiny typo in HISTORY.rst
Thomas Weißschuh [Mon, 1 Apr 2013 18:47:20 +0000 (18:47 +0000)]
fix tiny typo in HISTORY.rst

11 years agoFixed typos
Pascal Borreli [Mon, 1 Apr 2013 15:02:37 +0000 (15:02 +0000)]
Fixed typos

11 years agois should not be used for comparing numbers
Alex Gaynor [Mon, 1 Apr 2013 06:20:46 +0000 (23:20 -0700)]
is should not be used for comparing numbers

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Sun, 31 Mar 2013 05:28:57 +0000 (08:28 +0300)]
Merge remote-tracking branch 'origin/master'

11 years agov1.2.0 v1.2.0
Kenneth Reitz [Sun, 31 Mar 2013 05:28:22 +0000 (08:28 +0300)]
v1.2.0

11 years agoMerge pull request #1268 from t-8ch/update_urllib3
Kenneth Reitz [Sun, 31 Mar 2013 05:27:59 +0000 (22:27 -0700)]
Merge pull request #1268 from t-8ch/update_urllib3

update vendored urllib3

11 years agofix syntax error
Kenneth Reitz [Sun, 31 Mar 2013 05:22:44 +0000 (08:22 +0300)]
fix syntax error

11 years agoMerge pull request #1267 from sigmavirus24/master
Kenneth Reitz [Sun, 31 Mar 2013 05:21:52 +0000 (22:21 -0700)]
Merge pull request #1267 from sigmavirus24/master

One last pull request before 1.2 ideally

11 years agoMerge pull request #1270 from makto/add_attr
Kenneth Reitz [Sun, 31 Mar 2013 05:20:02 +0000 (22:20 -0700)]
Merge pull request #1270 from makto/add_attr

add 'max_redirects' to Session's __attrs__

11 years agoUse session defaults instead of arbitrary ones
Ian Cordasco [Sat, 30 Mar 2013 00:18:58 +0000 (20:18 -0400)]
Use session defaults instead of arbitrary ones

11 years agoadd 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session
makto [Fri, 29 Mar 2013 12:58:15 +0000 (20:58 +0800)]
add 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session

11 years agoupdate vendored urllib3
Thomas Weißschuh [Thu, 28 Mar 2013 12:48:50 +0000 (12:48 +0000)]
update vendored urllib3

11 years agoFix the tests and unseparate comments from code
Ian Cordasco [Thu, 28 Mar 2013 12:33:34 +0000 (08:33 -0400)]
Fix the tests and unseparate comments from code

See the comments on the previous few commits on GitHub.

11 years agoRestore Session.request docstring
Ian Cordasco [Thu, 28 Mar 2013 03:46:21 +0000 (23:46 -0400)]
Restore Session.request docstring

Resolves #1251

11 years agoFinally resolve #1084
Ian Cordasco [Thu, 28 Mar 2013 03:30:00 +0000 (23:30 -0400)]
Finally resolve #1084

Send body on redirect when POSTing or PUTing.

11 years agoThis should take care of #1266
Ian Cordasco [Thu, 28 Mar 2013 03:26:11 +0000 (23:26 -0400)]
This should take care of #1266

We were sending 'None' as the Content-Length on requests where the body was a
generator. This commit should prevent that entirely.

11 years agoAdd correct defaults in Session.send()
Ian Cordasco [Thu, 28 Mar 2013 03:17:34 +0000 (23:17 -0400)]
Add correct defaults in Session.send()

Resolves #1258

Also fixed the tests to reflect the necessary changes.

11 years agoUpdate the HISTORY for v1.2
Ian Cordasco [Thu, 28 Mar 2013 03:10:59 +0000 (23:10 -0400)]
Update the HISTORY for v1.2

11 years agosp
Kenneth Reitz [Tue, 26 Mar 2013 20:38:11 +0000 (16:38 -0400)]
sp

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Tue, 26 Mar 2013 20:32:25 +0000 (16:32 -0400)]
Merge remote-tracking branch 'origin/master'

11 years agoRezzy the Request Sea Turtle
Kenneth Reitz [Tue, 26 Mar 2013 20:32:20 +0000 (16:32 -0400)]
Rezzy the Request Sea Turtle

11 years agoMerge pull request #1263 from justin-factual/master
Kenneth Reitz [Mon, 25 Mar 2013 19:48:45 +0000 (12:48 -0700)]
Merge pull request #1263 from justin-factual/master

iter_lines documentation for #1260

11 years agoClarify streaming behavior in iter_lines doc
Justin Fenn [Mon, 25 Mar 2013 19:20:33 +0000 (12:20 -0700)]
Clarify streaming behavior in iter_lines doc

11 years ago/s/make/invoke
Kenneth Reitz [Fri, 22 Mar 2013 19:52:08 +0000 (15:52 -0400)]
/s/make/invoke

11 years agofirst
Kenneth Reitz [Fri, 22 Mar 2013 19:48:27 +0000 (15:48 -0400)]
first

11 years agoactually cleanup url authentication
Kenneth Reitz [Fri, 22 Mar 2013 19:47:20 +0000 (15:47 -0400)]
actually cleanup url authentication

11 years agocp949prover for charade
Kenneth Reitz [Fri, 22 Mar 2013 19:21:28 +0000 (15:21 -0400)]
cp949prover for charade

11 years agoinvoke!
Kenneth Reitz [Fri, 22 Mar 2013 19:21:04 +0000 (15:21 -0400)]
invoke!

11 years agoupgrade to charade v1.0.3
Kenneth Reitz [Fri, 22 Mar 2013 19:20:49 +0000 (15:20 -0400)]
upgrade to charade v1.0.3

11 years agoremove makefile
Kenneth Reitz [Fri, 22 Mar 2013 19:20:27 +0000 (15:20 -0400)]
remove makefile

11 years agofix get_auth_from_url
Kenneth Reitz [Fri, 22 Mar 2013 04:15:06 +0000 (00:15 -0400)]
fix get_auth_from_url

11 years agoget_auth_from_url return None if nothing is found
Kenneth Reitz [Fri, 22 Mar 2013 04:13:08 +0000 (00:13 -0400)]
get_auth_from_url return None if nothing is found

11 years agosimplify get_auth_from_url call
Kenneth Reitz [Fri, 22 Mar 2013 04:12:58 +0000 (00:12 -0400)]
simplify get_auth_from_url call

11 years agoMerge pull request #1254 from jkakar/url-authentication
Kenneth Reitz [Fri, 22 Mar 2013 04:06:23 +0000 (21:06 -0700)]
Merge pull request #1254 from jkakar/url-authentication

url-authentication

11 years ago- Pull credentials out of the URL when possible.
Jamu Kakar [Fri, 22 Mar 2013 00:55:08 +0000 (17:55 -0700)]
- Pull credentials out of the URL when possible.

11 years agoMerge pull request #1239 from miikka/fix-issue-1228
Kenneth Reitz [Wed, 20 Mar 2013 10:37:25 +0000 (03:37 -0700)]
Merge pull request #1239 from miikka/fix-issue-1228

Use session cookies when following redirects

11 years agoMerge pull request #1245 from Damgaard/master
Kenneth Reitz [Thu, 14 Mar 2013 15:29:53 +0000 (08:29 -0700)]
Merge pull request #1245 from Damgaard/master

Remove duplicate comment.

11 years agoRemove duplicate comment.
Andreas Damgaard Pedersen [Thu, 14 Mar 2013 15:12:45 +0000 (16:12 +0100)]
Remove duplicate comment.

11 years agoDo not pass cookies to resolve_redirects
Miikka Koskinen [Tue, 12 Mar 2013 16:25:19 +0000 (18:25 +0200)]
Do not pass cookies to resolve_redirects

SessionRedirectMixin is extending Session, so we can just use
self.cookies.

11 years agoUse session cookies when following redirects
Miikka Koskinen [Sat, 9 Mar 2013 10:53:38 +0000 (12:53 +0200)]
Use session cookies when following redirects

When a redirect was followed, only the cookies set by the initial
response were used in the follow-up request. Fixes #1228.

11 years agoAdd failing test case for #1228
Miikka Koskinen [Sat, 9 Mar 2013 07:16:33 +0000 (09:16 +0200)]
Add failing test case for #1228

11 years agoMerge pull request #1244 from jajadinimueter/master
Kenneth Reitz [Tue, 12 Mar 2013 15:23:21 +0000 (08:23 -0700)]
Merge pull request #1244 from jajadinimueter/master

Fixed further pickeling issues in Session and HTTPAdapter

11 years agoFixed some pickeling issues with HTTPAdapter and Session
Florian Mueller [Tue, 12 Mar 2013 15:04:19 +0000 (16:04 +0100)]
Fixed some pickeling issues with HTTPAdapter and Session

Added trust_env and stream to Session.__attrs__. Initialize
self._pool_connections and self._pool_maxsize in HTTPAdapter.

11 years agoMerge pull request #1243 from darjus-amzn/master
Kenneth Reitz [Tue, 12 Mar 2013 14:37:55 +0000 (07:37 -0700)]
Merge pull request #1243 from darjus-amzn/master

Pickling of Session and HTTPAdapter + a test

11 years agoPickling of Session and HTTPAdapter + a test
Darjus Loktevic [Mon, 11 Mar 2013 18:12:34 +0000 (18:12 +0000)]
Pickling of Session and HTTPAdapter + a test

This is for issue #1088

11 years agoMerge pull request #1238 from oczkers/master
Kenneth Reitz [Fri, 8 Mar 2013 19:51:42 +0000 (11:51 -0800)]
Merge pull request #1238 from oczkers/master

cleanup (remove max_retries test)

11 years agocleanup (remove max_retries test)
Piotr Staroszczyk [Fri, 8 Mar 2013 10:17:17 +0000 (11:17 +0100)]
cleanup (remove max_retries test)

11 years agoMerge pull request #1234 from Vassius/issue-1225
Kenneth Reitz [Tue, 5 Mar 2013 15:31:10 +0000 (07:31 -0800)]
Merge pull request #1234 from Vassius/issue-1225

Fix issue #1225 (Documentation: response object status/reason)

11 years agoFix issue #1225 (Documentation: response object status/reason)
Markus Wiik [Tue, 5 Mar 2013 15:18:24 +0000 (16:18 +0100)]
Fix issue #1225 (Documentation: response object status/reason)

11 years agoMerge remote-tracking branch 'origin/master'
Kenneth Reitz [Mon, 4 Mar 2013 22:54:32 +0000 (17:54 -0500)]
Merge remote-tracking branch 'origin/master'

11 years agoMerge branch 'httperror_init' of git://github.com/dmedvinsky/requests
Kenneth Reitz [Mon, 4 Mar 2013 22:54:25 +0000 (17:54 -0500)]
Merge branch 'httperror_init' of git://github.com/dmedvinsky/requests

Conflicts:
AUTHORS.rst
test_requests.py

11 years agoMerge pull request #1223 from andrewjesaitis/master
Kenneth Reitz [Mon, 4 Mar 2013 22:52:31 +0000 (14:52 -0800)]
Merge pull request #1223 from andrewjesaitis/master

Fixes __getstate__ for session pickling

11 years agoAdds __attrs__ back to Session object
Andrew Jesaitis [Mon, 4 Mar 2013 18:07:29 +0000 (11:07 -0700)]
Adds __attrs__ back to Session object

11 years agoRevert "[kennethreitz/requests#1208] adding unit test for max_retries"
Kenneth Reitz [Sun, 3 Mar 2013 17:01:47 +0000 (12:01 -0500)]
Revert "[kennethreitz/requests#1208] adding unit test for max_retries"

This reverts commit 18b29ea00563a0bf8e15666806117444c87ac23f.

11 years agoRevert "[kennethreitz/requests#1208] adding a max_retries argument"
Kenneth Reitz [Sun, 3 Mar 2013 17:01:38 +0000 (12:01 -0500)]
Revert "[kennethreitz/requests#1208] adding a max_retries argument"

This reverts commit 796d3225ddf08a9ebaa429209b9d077c3a8f99b8.

11 years agoAdd ability to pass `response` to `HTTPError()`
Dmitry Medvinsky [Fri, 1 Mar 2013 08:43:39 +0000 (12:43 +0400)]
Add ability to pass `response` to `HTTPError()`

Just a little refactoring, but it seems nicer to me to be able to pass
the response when constructing the `HTTPError` instance instead of
constructing it and then changing the member variable.

11 years agoMerge pull request #1190 from mkomitee/master
Kenneth Reitz [Sat, 2 Mar 2013 21:04:00 +0000 (13:04 -0800)]
Merge pull request #1190 from mkomitee/master

Pass user options to hooks

11 years agoMerge pull request #1219 from Wilfred/master
Kenneth Reitz [Sat, 2 Mar 2013 21:02:26 +0000 (13:02 -0800)]
Merge pull request #1219 from Wilfred/master

Adding max_retries as an argument

11 years agoMerge pull request #1226 from dmedvinsky/fix-typos
Kenneth Reitz [Sat, 2 Mar 2013 21:00:48 +0000 (13:00 -0800)]
Merge pull request #1226 from dmedvinsky/fix-typos

Fix couple of typos in HISTORY.rst

11 years agoMerge pull request #1229 from sprt/master
Kenneth Reitz [Sat, 2 Mar 2013 20:59:41 +0000 (12:59 -0800)]
Merge pull request #1229 from sprt/master

Doc fix: URLError doesn't exist anymore

11 years agoMerge pull request #1230 from davidfischer/trivial-docs-fix
Kenneth Reitz [Sat, 2 Mar 2013 20:59:10 +0000 (12:59 -0800)]
Merge pull request #1230 from davidfischer/trivial-docs-fix

Github URL fix

11 years agoMerge pull request #1231 from davidfischer/docs-migration1.0
Kenneth Reitz [Sat, 2 Mar 2013 20:58:49 +0000 (12:58 -0800)]
Merge pull request #1231 from davidfischer/docs-migration1.0

Initial docs patch for migrating from pre 1.0

11 years agoSession isn't advertised as a context manager
David Fischer [Sat, 2 Mar 2013 16:59:19 +0000 (08:59 -0800)]
Session isn't advertised as a context manager

11 years agoCapitalize s in Session
David Fischer [Sat, 2 Mar 2013 16:51:55 +0000 (08:51 -0800)]
Capitalize s in Session

11 years agoLogic on streaming responses was changed in 1.0
David Fischer [Sat, 2 Mar 2013 16:44:14 +0000 (08:44 -0800)]
Logic on streaming responses was changed in 1.0

* prefetch=False in 0.x is now stream=True

11 years agoInitial docs patch for migrating from pre 1.0
David Fischer [Sat, 2 Mar 2013 07:21:08 +0000 (23:21 -0800)]
Initial docs patch for migrating from pre 1.0

11 years agoGithub URL fix
David Fischer [Sat, 2 Mar 2013 04:36:42 +0000 (20:36 -0800)]
Github URL fix

11 years agoURLError doesn't exist anymore
sprt [Fri, 1 Mar 2013 19:20:53 +0000 (20:20 +0100)]
URLError doesn't exist anymore

11 years agoFix couple of typos in HISTORY.rst
Dmitry Medvinsky [Fri, 1 Mar 2013 07:42:43 +0000 (11:42 +0400)]
Fix couple of typos in HISTORY.rst

One typo and a couple of auto-completions, I guess.

11 years agoChecks __attrs__ on session instance prior to iterating.
Andrew Jesaitis [Thu, 28 Feb 2013 19:07:00 +0000 (12:07 -0700)]
Checks __attrs__ on session instance prior to iterating.

11 years ago[kennethreitz/requests#1208] adding unit test for max_retries
Wilfred Hughes [Wed, 27 Feb 2013 16:01:36 +0000 (16:01 +0000)]
[kennethreitz/requests#1208] adding unit test for max_retries

11 years ago[kennethreitz/requests#1208] adding a max_retries argument
Wilfred Hughes [Wed, 27 Feb 2013 16:01:23 +0000 (16:01 +0000)]
[kennethreitz/requests#1208] adding a max_retries argument

11 years agoRevert "If Content-Length is already set.."[1]
Ian Cordasco [Mon, 25 Feb 2013 14:29:05 +0000 (09:29 -0500)]
Revert "If Content-Length is already set.."[1]

This reverts commit 544d08d0f61c35358cf13b4a6b677e4e51dbbe7e.

[1]"If Content-Length is already set, don't over ride it"

11 years agoMerge pull request #1205 from sigmavirus24/fix1203
Kenneth Reitz [Mon, 25 Feb 2013 10:31:21 +0000 (02:31 -0800)]
Merge pull request #1205 from sigmavirus24/fix1203

Missing line was allowing redirects with HEAD

11 years agoMerge pull request #1210 from Lukasa/urlencode_proxy
Kenneth Reitz [Mon, 25 Feb 2013 10:31:00 +0000 (02:31 -0800)]
Merge pull request #1210 from Lukasa/urlencode_proxy

Unquote proxy usernames and passwords.

11 years agoRevert "Lukasa is lazy"
Kenneth Reitz [Fri, 22 Feb 2013 13:23:34 +0000 (08:23 -0500)]
Revert "Lukasa is lazy"

This reverts commit 178ff62b934c30278114028f654e42374206c291.

11 years agoUnquote proxy usernames and passwords.
Cory Benfield [Fri, 22 Feb 2013 00:33:01 +0000 (11:33 +1100)]
Unquote proxy usernames and passwords.

11 years agoMissing line was allowing redirects with HEAD
Ian Cordasco [Wed, 20 Feb 2013 13:57:37 +0000 (08:57 -0500)]
Missing line was allowing redirects with HEAD

Closes #1203

11 years agoLukasa is lazy
Kenneth Reitz [Wed, 20 Feb 2013 07:11:41 +0000 (02:11 -0500)]
Lukasa is lazy

11 years agoMerge pull request #1193 from Lukasa/timeout_exception
Kenneth Reitz [Wed, 20 Feb 2013 07:10:44 +0000 (23:10 -0800)]
Merge pull request #1193 from Lukasa/timeout_exception

Throw more informative exceptions.

11 years agoMerge pull request #1200 from gazpachoking/session_cookies_fix
Kenneth Reitz [Wed, 20 Feb 2013 06:50:10 +0000 (22:50 -0800)]
Merge pull request #1200 from gazpachoking/session_cookies_fix

Make sure session cookies do not overwrite explicit request cookies

11 years agoMerge pull request #1199 from t-8ch/docs_explicit_proxy_scheme
Kenneth Reitz [Tue, 19 Feb 2013 13:40:15 +0000 (05:40 -0800)]
Merge pull request #1199 from t-8ch/docs_explicit_proxy_scheme

Use explicit scheme for proxies in the docs

11 years agoRethrow underlying exceptions.
Cory Benfield [Wed, 13 Feb 2013 22:57:21 +0000 (09:57 +1100)]
Rethrow underlying exceptions.

11 years agoMake sure session cookies do not overwrite explicit request cookies
Chase Sterling [Sat, 16 Feb 2013 05:56:59 +0000 (00:56 -0500)]
Make sure session cookies do not overwrite explicit request cookies
Implement RequestsCookieJar.copy
Use RequestsCookieJar.update when merging cookiejars

11 years agouse explicit scheme for proxies in the docs
Thomas Weißschuh [Fri, 15 Feb 2013 16:32:50 +0000 (16:32 +0000)]
use explicit scheme for proxies in the docs

Issue #1192 tried to force user to provide a scheme for proxy urls.
As this would break backwards compability change the docs instead.

11 years agoMerge pull request #1194 from gazpachoking/cookiejar_update
Kenneth Reitz [Fri, 15 Feb 2013 06:42:49 +0000 (22:42 -0800)]
Merge pull request #1194 from gazpachoking/cookiejar_update

Allow RequestsCookieJar to be updated with cookies from a CookieJar

11 years agoRemove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as...
Chase Sterling [Fri, 15 Feb 2013 03:52:31 +0000 (22:52 -0500)]
Remove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as keys

11 years agoFixing test for python3
Michael Komitee [Fri, 15 Feb 2013 02:33:01 +0000 (21:33 -0500)]
Fixing test for python3

11 years agoAllow RequestsCookieJar to be updated with cookies from a CookieJar
Chase Sterling [Thu, 14 Feb 2013 06:05:42 +0000 (01:05 -0500)]
Allow RequestsCookieJar to be updated with cookies from a CookieJar

11 years agoNew tests fail on python 3.x because read() returns bytes and the test checks for...
Michael Komitee [Thu, 14 Feb 2013 03:42:56 +0000 (22:42 -0500)]
New tests fail on python 3.x because read() returns bytes and the test checks for strings

11 years agoAdding test to ensure options like stream function with authentication
Michael Komitee [Thu, 14 Feb 2013 02:28:32 +0000 (21:28 -0500)]
Adding test to ensure options like stream function with authentication

This test demonstrates the reason why we need to pass kwargs to hooks. Without
it, features like stream cannot work with authentication.

11 years agoUse user supplied options when resending authenticated requests
Michael Komitee [Thu, 14 Feb 2013 00:11:38 +0000 (19:11 -0500)]
Use user supplied options when resending authenticated requests

Hooks sometimes have to send requests (e.g. when responding to a 401 during
authentication).

All keyword arguments should be passed along when hooks are dispatched so that
if a user wanted to use a timeout, stream, specify a cert location with the
verify flag, etc, their specification can be followed.

11 years agoMerge pull request #1185 from sigmavirus24/fix_hook_dispatching
Kenneth Reitz [Wed, 13 Feb 2013 10:13:31 +0000 (02:13 -0800)]
Merge pull request #1185 from sigmavirus24/fix_hook_dispatching

Dispatch hooks before following redirects

11 years agoDispatch hooks before following redirects
Ian Cordasco [Wed, 13 Feb 2013 04:00:06 +0000 (23:00 -0500)]
Dispatch hooks before following redirects

Fixes #1183