shazow/urllib3 — Issue #10: Incorrect handling of HTTP redirects
Author: Schnitzel-Mega
Created: 2011-11-24 10:41:57+00:00
State: open

Code:

manager = urllib3.PoolManager()
r = manager.request('GET', 'http://ynet.co.il')
r.data - returns incorrect page

same with paypal.com and other domains... The code takes the location value from the HTTP response and issues a GET request to http://www.ynet.co.il to hostname http://ynet.co.il