Files
requests3/requests
Ben f24d56a1ce Consolidate logic for changing method during redirects
I only moved the code into a function, there was no actual change to
the code. I added a few tests to ensure we're doing things correctly.

The real point of me doing this is to make it easier to bring back
`strict_mode` functionality. For you requests youngsters in the crowd,
`strict_mode` followed the spec for redirects meaning the method
wouldn't change to a GET. The current code follows the browser
convention of changing the method to a GET when doing a 302 redirect.
However, lots of servers want you to follow the standards (the nerve!)
so I'd like to override the logic. Now that the method changing logic
is in `rebuild_method`, I can simply override that function instead of
overriding the entire `resolve_redirects` function as suggested by
kennethreitz/requests#1325
2016-03-17 23:16:39 -05:00
..
2015-12-19 08:40:39 +00:00
2016-03-08 23:51:46 -05:00
2015-12-11 13:32:09 -05:00
2016-01-30 19:59:58 +01:00
2015-10-08 08:09:53 +01:00
2015-09-13 06:36:39 -04:00
2014-08-24 19:46:46 -07:00