Alex Gaynor
39acf1dbd2
is should not be used for comparing numbers
2013-03-31 23:20:46 -07:00
Kenneth Reitz
59b69d1fb8
Merge remote-tracking branch 'origin/master'
2013-03-31 08:28:57 +03:00
Kenneth Reitz
d06908d655
v1.2.0
2013-03-31 08:28:22 +03:00
Kenneth Reitz
5b5ffc9714
Merge pull request #1268 from t-8ch/update_urllib3
...
update vendored urllib3
2013-03-30 22:27:59 -07:00
Kenneth Reitz
75703d57e6
fix syntax error
2013-03-31 08:22:44 +03:00
Kenneth Reitz
bd6b981d12
Merge pull request #1267 from sigmavirus24/master
...
One last pull request before 1.2 ideally
2013-03-30 22:21:52 -07:00
Ian Cordasco
325ea7b7e2
Use session defaults instead of arbitrary ones
2013-03-29 20:18:58 -04:00
makto
4ffae38627
add 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session
2013-03-29 20:58:15 +08:00
Thomas Weißschuh
d7908a9fde
update vendored urllib3
2013-03-28 12:49:04 +00:00
Ian Cordasco
0cd23d8d6e
Fix the tests and unseparate comments from code
...
See the comments on the previous few commits on GitHub.
2013-03-28 08:33:34 -04:00
Ian Cordasco
aca91e06f2
Restore Session.request docstring
...
Resolves #1251
2013-03-27 23:46:21 -04:00
Ian Cordasco
88177ec33f
Finally resolve #1084
...
Send body on redirect when POSTing or PUTing.
2013-03-27 23:30:00 -04:00
Ian Cordasco
1d5c4f3f0f
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.
2013-03-27 23:26:11 -04:00
Ian Cordasco
478d49027f
Add correct defaults in Session.send()
...
Resolves #1258
Also fixed the tests to reflect the necessary changes.
2013-03-27 23:17:34 -04:00
Justin Fenn
6963b8490c
Clarify streaming behavior in iter_lines doc
2013-03-25 12:20:33 -07:00
Kenneth Reitz
92f7478174
first
2013-03-22 15:48:27 -04:00
Kenneth Reitz
19d38d502f
actually cleanup url authentication
2013-03-22 15:47:20 -04:00
Kenneth Reitz
52d328ec3c
cp949prover for charade
2013-03-22 15:21:28 -04:00
Kenneth Reitz
80a861cb84
upgrade to charade v1.0.3
2013-03-22 15:20:49 -04:00
Kenneth Reitz
030b9763b5
fix get_auth_from_url
2013-03-22 00:15:06 -04:00
Kenneth Reitz
03a3ca5004
get_auth_from_url return None if nothing is found
2013-03-22 00:13:08 -04:00
Kenneth Reitz
1325409560
simplify get_auth_from_url call
2013-03-22 00:12:58 -04:00
Kenneth Reitz
13aeb9cb06
Merge pull request #1254 from jkakar/url-authentication
...
url-authentication
2013-03-21 21:06:23 -07:00
Jamu Kakar
7d217bf9bd
- Pull credentials out of the URL when possible.
2013-03-21 17:55:08 -07:00
Miikka Koskinen
120a2f385a
Do not pass cookies to resolve_redirects
...
SessionRedirectMixin is extending Session, so we can just use
self.cookies.
2013-03-12 18:45:11 +02:00
Miikka Koskinen
5bb2be9a23
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 .
2013-03-12 18:43:58 +02:00
Florian Mueller
c41932e184
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.
2013-03-12 16:04:19 +01:00
Darjus Loktevic
e706d18cf8
Pickling of Session and HTTPAdapter + a test
...
This is for issue #1088
2013-03-11 18:12:34 +00:00
Kenneth Reitz
d25ba77b2e
Merge remote-tracking branch 'origin/master'
2013-03-04 17:54:32 -05:00
Kenneth Reitz
c0d4b23cea
Merge branch 'httperror_init' of git://github.com/dmedvinsky/requests
...
Conflicts:
AUTHORS.rst
test_requests.py
2013-03-04 17:54:25 -05:00
Kenneth Reitz
99eead01a3
Merge pull request #1223 from andrewjesaitis/master
...
Fixes __getstate__ for session pickling
2013-03-04 14:52:31 -08:00
Andrew Jesaitis
d60845303b
Adds __attrs__ back to Session object
2013-03-04 11:07:29 -07:00
Kenneth Reitz
23d8522285
Revert "[ kennethreitz/requests#1208 ] adding a max_retries argument"
...
This reverts commit 796d3225dd .
2013-03-03 12:01:38 -05:00
Dmitry Medvinsky
c4f9340fb4
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.
2013-03-03 10:05:42 +04:00
Kenneth Reitz
d372a5b10b
Merge pull request #1190 from mkomitee/master
...
Pass user options to hooks
2013-03-02 13:04:00 -08:00
Kenneth Reitz
7aad3fd08c
Merge pull request #1219 from Wilfred/master
...
Adding max_retries as an argument
2013-03-02 13:02:26 -08:00
sprt
b80f8aa475
URLError doesn't exist anymore
2013-03-01 20:20:53 +01:00
Andrew Jesaitis
6a0845c984
Checks __attrs__ on session instance prior to iterating.
2013-02-28 15:13:57 -07:00
Wilfred Hughes
796d3225dd
[ kennethreitz/requests#1208 ] adding a max_retries argument
2013-02-27 16:01:23 +00:00
Ian Cordasco
be62645dd5
Revert "If Content-Length is already set.."[1]
...
This reverts commit 544d08d0f6 .
[1]"If Content-Length is already set, don't over ride it"
2013-02-25 09:29:05 -05:00
Kenneth Reitz
603fd42fe6
Merge pull request #1205 from sigmavirus24/fix1203
...
Missing line was allowing redirects with HEAD
2013-02-25 02:31:21 -08:00
Kenneth Reitz
1fc567449c
Merge pull request #1210 from Lukasa/urlencode_proxy
...
Unquote proxy usernames and passwords.
2013-02-25 02:31:00 -08:00
Kenneth Reitz
c01bc5be5b
Revert "Lukasa is lazy"
...
This reverts commit 178ff62b93 .
2013-02-22 08:23:34 -05:00
Cory Benfield
577dba2bf7
Unquote proxy usernames and passwords.
2013-02-22 11:33:01 +11:00
Ian Cordasco
a788cb7271
Missing line was allowing redirects with HEAD
...
Closes #1203
2013-02-20 08:57:37 -05:00
Kenneth Reitz
178ff62b93
Lukasa is lazy
2013-02-20 02:11:41 -05:00
Kenneth Reitz
aa99525537
Merge pull request #1193 from Lukasa/timeout_exception
...
Throw more informative exceptions.
2013-02-19 23:10:44 -08:00
Cory Benfield
c2480f65e6
Rethrow underlying exceptions.
2013-02-18 16:30:16 +11:00
Chase Sterling
3f86e22a07
Make sure session cookies do not overwrite explicit request cookies
...
Implement RequestsCookieJar.copy
Use RequestsCookieJar.update when merging cookiejars
2013-02-16 00:56:59 -05:00
Chase Sterling
f3393fb24c
Remove ability to from RequestCookieJar __getitem__, __setitem__ to use cookies as keys
2013-02-14 22:52:31 -05:00