kennethreitz/requests — Issue #204: allow_redirects=False ignored in a POST request
Author: ehmo
Created: 2011-10-14 13:53:50+00:00
State: open

Hi,

I just noticed that if you will send a POST data into a URL which will redirect you then allow_redirects = False are ignored

d_args = {'a':'a'}
r = requests.post(url = 'http://www.synopsi.com', data = d_args, allow_redirects = False)
print r.url => 'https://www.synopsi.tv/'

d_args = {}
r = requests.post(url = 'http://www.synopsi.com', data = d_args, allow_redirects = False)
print r.url => 'http://www.synopsi.com/'