changeset 127 | e6bf005a5f58 |
parent 126 | c107e11c37e8 |
child 128 | c63eca238256 |
--- a/downloadkit/downloadkit.py Tue Dec 22 12:34:01 2009 +0000 +++ b/downloadkit/downloadkit.py Tue Dec 22 13:55:14 2009 +0000 @@ -157,7 +157,7 @@ if first_chunk and chunk.find('<div id="sign_in_box">') != -1: # our urllib2 cookies have gone awol - login again login(False) - req = urllib2.Request(downloadurl) + req = urllib2.Request(downloadurl, None, headers) response = urllib2.urlopen(req) chunk = response.read(CHUNK) fp.write(chunk)