fix POST redirects
authorDavid Bonner <dbonner@gmail.com>
Sun, 23 Dec 2012 05:51:26 +0000 (00:51 -0500)
committerDavid Bonner <dbonner@gmail.com>
Sun, 23 Dec 2012 05:51:26 +0000 (00:51 -0500)
commit7d085b188cbf71d2ba9a3124d7acfc57c75fe954
tree19943524d7b581dfbcbe1aad2d79d1e30fa00cc7
parent60b4843678c4681701e3f67d17c90a0ee370b0f8
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.
AUTHORS.rst
requests/sessions.py
test_requests.py