Commit Graph

211 Commits

Author SHA1 Message Date
kennethreitz 5c915451e7 Merge pull request #1657 from sigmavirus24/fix-session-hooks
Honor session hooks
2013-12-03 17:33:42 -08:00
daftshady c26a6c310c remove unused import 2013-11-26 15:38:48 +09:00
daftshady 1adba3c9e9 modified 'merge_cookies' and update tests.
made sessions.py to use that method when merging cookies.
2013-11-26 15:28:59 +09:00
daftshady e40c1637c9 added new method 'merge_cookies' and use it when merging session cookies with param cookies. 2013-11-26 15:28:59 +09:00
daftshady 2bbd7ba1c2 Fixed #1711 2013-11-26 15:22:46 +09:00
Cory Benfield 3369d87da9 Cleanup the redirect if blocks. 2013-11-24 11:13:49 +00:00
Cory Benfield 470af31f4a Handle 301s 'properly'. 2013-11-24 11:09:00 +00:00
daftshady 4972133a9b use geturl to lower scheme 2013-11-19 19:54:46 +09:00
daftshady 8c8938e8cb issue #1746 : Don't lowercase the whole URL! 2013-11-19 18:59:22 +09:00
daftshady 1511dfa637 moved logic to Session object and added test case 2013-11-04 22:32:17 +09:00
Can Ibanoglu 0cd6959f19 Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects 2013-10-22 23:48:04 +03:00
Ian Cordasco a4605fe324 Fix failing test to preserve behaviour 2013-10-07 21:17:59 -05:00
kennethreitz 318ca102cd Merge pull request #1635 from daftshady/dev
Fixed #1630 and added test case.
2013-10-07 16:22:49 -07:00
Ian Cordasco 5bf396d5d1 Honor session hooks 2013-10-07 12:23:16 -05:00
daftshady 012f0334ce added param to cookiejar_from_dict instead of creating new method. 2013-09-29 01:08:58 +09:00
Cory Benfield 0051837af4 Correctly lowercase a redirect scheme. 2013-09-28 17:01:32 +01:00
daftshady d22eaf96e2 Fixed #1630 2013-09-28 23:44:27 +09:00
daftshady 39fe0068aa Fixed #1630, added test case for cookie persistence. 2013-09-28 16:33:05 +09:00
Kenneth Reitz 54ad646067 merge 2.0 insto master 2013-09-24 14:13:28 -04:00
Kenneth Reitz 58376489af Merge pull request #1585 from rvoicilas/master
Use values() when the keys are not being used
2013-09-24 10:45:46 -07:00
kracekumar a829ef9b46 Fixed persistence spelling 2013-09-10 17:52:29 +05:30
Radu Voicilas 056da86f6d Use values() when the keys are not being used 2013-09-09 15:21:36 +03:00
Kenneth Reitz bd1f1404a0 Merge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0 2013-07-31 21:33:24 -04:00
Robert Estelle 0ab7a52f7c Merge settings when creating PreparedRequest, don't copy Request. 2013-07-31 13:42:02 -07:00
Robert Estelle 9edba838b3 Skip unneccessary Request.copy in Session.request 2013-07-30 22:59:11 -07:00
Robert Estelle b5c136152f Prepare requests with session settings separately from sending. 2013-07-30 21:39:36 -07:00
Ian Cordasco 286ddb672d Take advantage of the new copy method 2013-07-27 23:08:46 -04:00
Ian Cordasco 972089826e Fixed finally. Also requires updated httpbin.org 2013-07-27 23:07:25 -04:00
Cory Benfield 3becc47366 Comment markups, courtesy of @sigmavirus24 2013-07-24 16:03:24 +01:00
Cory Benfield f40a1d6a8a Better cookie docs on sessions. 2013-07-24 13:25:59 +01:00
Vikram Oberoi 188e7609b3 .netrc settings shouldn't blow away explicit auth settings on a session 2013-06-27 16:43:40 -04:00
Roman Haritonov 716b627c1e Don't reuse PreparedRequest on redirects 2013-06-08 14:41:34 +04:00
Kenneth Reitz 8430e6ccbb Merge pull request #1334 from rcarz/master
resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
2013-06-08 03:18:25 -07:00
Bob Carroll 72e155e529 resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing 2013-05-26 14:44:22 -07:00
Bob Carroll e715d7184b resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase 2013-05-26 14:43:00 -07:00
Viktor Haag 5e94f38001 - fixed func call syntax on lower to lower()
- added test cases for trying to test GETS on mixed-case schemas
2013-05-24 14:01:30 -04:00
Viktor Haag 3004ad5398 Lower-ify url before checking against prefix with startswith() 2013-05-24 11:26:00 -04:00
Chase Sterling 98114245c6 Refactor merge_kwargs for clarity and to fix a few bugs 2013-05-20 21:20:51 -04:00
Cory Benfield 2b6ebd2521 Always percent-encode location headers. 2013-05-16 12:02:46 +01:00
Łukasz Langa 4c8af1fff4 Fixes #1320: transport adapters stored in ordered form 2013-05-15 13:34:09 +02:00
Chase Sterling 0c609b59ab Fix session CookieJars without breaking more stuff this time 2013-04-25 23:15:50 -04:00
Chase Sterling 9763a671da Fix crash when session.cookies was not a RequestsCookieJar 2013-04-25 22:34:51 -04:00
Iuri de Silvio 736e8cd735 Fix max_redirects docs issue #1301 2013-04-17 12:27:06 -07:00
Ian Cordasco c5d0a0931e Change the method when it isn't already GET/HEAD
For some reason it was only change the method when a POST was being made. This
is almost certainly my fault.

Fixes #1303
2013-04-13 12:31:22 -04:00
Chase Sterling 49a3664222 Don't set all session cookies on response.cookies 2013-04-04 23:30:52 -04:00
Chase Sterling d22ac00098 fix #1287: Make sure expired cookies get removed from session.cookies 2013-04-04 22:11:38 -04:00
Ian Cordasco 1abd13700b Closes #1280
Correct the doc-string for Session#request that I copied without thinking
about.
2013-04-02 09:27:25 -04:00
Kenneth Reitz 54ed5ed469 Revert "Fix for the issue https://github.com/kennethreitz/requests/issues/1280"
This reverts commit ca0aea640d.
2013-04-02 08:13:46 -04:00
Kamil Szot ca0aea640d Fix for the issue https://github.com/kennethreitz/requests/issues/1280 2013-04-02 13:42:40 +02:00
Kenneth Reitz 75703d57e6 fix syntax error 2013-03-31 08:22:44 +03:00