Ian Cordasco
1cfe59299b
Only call the hook once.
2013-01-23 11:51:37 -05:00
Ian Cordasco
e771aa9386
Comment & replace something that keeps disappearing
2013-01-23 11:28:30 -05:00
sprt
088f908d58
Add missing import
2013-01-23 15:45:14 +01:00
sprt
c4ad8afba9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
requests/sessions.py
2013-01-23 14:42:45 +01:00
Ian Cordasco
27e814ad76
Fix failing tests.
2013-01-21 20:21:08 -05:00
Ian Cordasco
e1c4fe21d4
Fix #1106
2013-01-19 11:49:52 -05:00
sprt
a721d590b4
Make hooks work with prepared requests
2013-01-12 21:46:44 +01:00
Kenneth Reitz
1a7c91f658
Merge remote-tracking branch 'origin/master'
2013-01-10 02:13:06 -05:00
Kenneth Reitz
9d33629b6d
don't supply params for directs
...
Closes #1070
2013-01-10 01:58:46 -05:00
Jian Li
a392a87389
Retrieve kwargs.keys() just once.
2013-01-09 22:07:38 -08:00
Jian Li
68edcd12b1
Make merge_kwargs case-insensitive when looking up keys.
2013-01-09 21:29:24 -08:00
Kenneth Reitz
fcccc82282
Merge remote-tracking branch 'origin/master'
2012-12-23 01:40:12 -05:00
Kenneth Reitz
3ddcc99131
docs update
2012-12-23 01:40:07 -05:00
David Bonner
7d085b188c
fix POST redirects
...
the redirect handling logic compares then method to upper-case strings,
so make sure the method gets upper-cased as well.
add a test to POST to /status/302 on httpbin, which fails against httpbin.org
right now. i'm submitting a pull request over there to fix that right after
this one. once that's accepted, the new test verifies that the fix works.
2012-12-23 00:51:26 -05:00
Hans Lellelid
bfef8d99c8
Updated API docs for 'data' param in sessions module to indicate that file-like object is also supported.
2012-12-20 09:47:29 -05:00
Ian Cordasco
14da5cf180
A possible fix for #1036
...
I can only assume that the only possible thing to close on a session are the
adapters. As such, I wrote the close method for a session object which closes
all possible adapters.
2012-12-18 09:43:55 -05:00
Kenneth Reitz
6acce57271
no kwargs
2012-12-18 05:01:32 -05:00
Bryce Boe
e355d6ac6c
Fix issue 1027. Always persist cookies.
2012-12-17 17:13:18 -08:00
Kenneth Reitz
27c6dc3735
Merge pull request #1020 from Lukasa/misc
...
Fix off-by-one error.
2012-12-17 10:46:09 -08:00
Cory Benfield
8b1b706903
Fix off-by-one error.
2012-12-17 18:42:32 +00:00
Kenneth Reitz
1e64fbcb55
CURL_CA_BUNDLE
2012-12-17 13:41:20 -05:00
Kenneth Reitz
1451ba0c6d
update docs
2012-12-17 08:33:18 -05:00
Kenneth Reitz
a982b0d903
proxy manager
2012-12-17 07:21:10 -05:00
Kenneth Reitz
c3431bb6f2
tension
2012-12-17 07:01:59 -05:00
Kenneth Reitz
d11522b29e
Connection Adapter Mounting!
2012-12-17 06:55:33 -05:00
Kenneth Reitz
4c3b9df609
/s/prefetch/stream
2012-12-17 06:35:01 -05:00
Kenneth Reitz
899c9a9522
fix cookies
2012-12-17 05:49:25 -05:00
Kenneth Reitz
42b0295521
__attrs__
2012-12-17 05:48:18 -05:00
Kenneth Reitz
4bad1285b6
nice and cleanup
2012-12-17 05:47:41 -05:00
Kenneth Reitz
a776e7cb3e
fix params support
2012-12-17 05:23:22 -05:00
Kenneth Reitz
def20cdb0c
remove iter_json, don't want to commit to it
2012-12-17 05:12:59 -05:00
Kenneth Reitz
92355ada54
cleanup
2012-12-17 05:09:44 -05:00
Kenneth Reitz
4837900832
digest works!
...
added some nice backwards compatible stuff too
2012-12-17 04:55:58 -05:00
Kenneth Reitz
03c8e23dbb
response
2012-12-17 03:56:58 -05:00
Kenneth Reitz
4e5c4a6ab7
further remove config
2012-12-17 03:26:47 -05:00
Kenneth Reitz
f44bb31bec
better yield
2012-12-17 03:13:19 -05:00
Kenneth Reitz
b1bcaecc66
MaxRedirects
2012-12-17 03:12:50 -05:00
Kenneth Reitz
cc4b0b110f
further remove config
2012-12-17 03:08:25 -05:00
Kenneth Reitz
2b5aed78d0
actually honor details
2012-12-17 02:52:39 -05:00
Kenneth Reitz
d5572ac13f
history is a tuple, not list
2012-12-17 02:32:19 -05:00
Kenneth Reitz
0d183c41a9
epic redirect generator is epic
2012-12-17 02:27:07 -05:00
Kenneth Reitz
0bee888f73
redirects work!
2012-12-17 02:21:22 -05:00
Kenneth Reitz
4a01272fb3
cleanup
2012-12-17 01:25:55 -05:00
Kenneth Reitz
9ab3234f0e
Merge remote-tracking branch 'origin/master'
2012-12-17 00:10:35 -05:00
Kenneth Reitz
bf05b7aeb5
v1.0.0
2012-12-17 00:10:32 -05:00
Natan L
ed360dcaf5
Fixed relative import.
...
For Python 3 support.
2012-12-15 19:53:56 -08:00
Kenneth Reitz
92d57036f3
WHOOOOOOOOOOOOOOOO
2012-12-15 05:50:01 -05:00
Kenneth Reitz
19e1f2037c
session.send()
2012-12-15 00:45:43 -05:00
Kenneth Reitz
ce595d4da7
Merge pull request #983 from jszakmeister/allow-strict
...
Add the ability to turn off HTTP 0.9 support.
2012-12-02 08:43:31 -08:00
John Szakmeister
ed642cfb6d
Add the ability to turn off HTTP 0.9 support.
...
While debugging an issue I discovered requests was coming back with 200
response, when it really shouldn't have. It turns out this happened for
two reasons: the jetty server running the app was rather lame and
didn't fail the request as a Bad Request, and httplib was happy to let
malformed data through and call it success.
It turns out httplib's strict flag controls this behavior of whether or
not to validate the status line. The underlying urllib3 supports the
concept as well. There was a bug there to that is now fixed upstream.
The last step is exposing this through requests. This introduces a
supports_http0.9 flag to help control this behavior. It defaults to
to True to preserve the current behavior. Setting it to False will
allow the underlying HTTPConnection to validate the status line.
2012-12-02 11:25:18 -05:00