Commit Graph

134 Commits

Author SHA1 Message Date
Cory Benfield b0657cf163 Guard against users sending unprepared requests. 2013-02-10 06:13:02 +00:00
Kenneth Reitz 9fc7059140 Merge pull request #1151 from sigmavirus24/fix1133
Move redirect handling from Session.request to Session.send
2013-02-05 11:42:51 -08:00
Yehuda Sadeh b07c1ebd85 Fix POST 303 redirect resonse handling
This fixes issue #1156.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-31 11:23:09 -08:00
Ian Cordasco ba485913b6 Thanks to @maxcountryman for the code review 2013-01-30 10:58:32 -05:00
Ian Cordasco a95bfd3032 Fix the elapsed test and #1133 2013-01-29 23:50:37 -05:00
Ian Cordasco c8ad4f0b73 Move the timing work to Session.send
per @kennethreitz's request
2013-01-28 11:53:02 -05:00
oczkers 40a060cf57 it`s more pep8 now 2013-01-27 02:04:12 +01:00
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