Added User Agent info to another urllib2.Request call which was missed in the previous commit
authorWilliam Roberts <williamr@symbian.org>
Tue, 22 Dec 2009 13:55:14 +0000
changeset 127 e6bf005a5f58
parent 126 c107e11c37e8
child 128 c63eca238256
Added User Agent info to another urllib2.Request call which was missed in the previous commit
downloadkit/downloadkit.py
--- 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)