Don't sleep for .1 seconds in between reading HTTP header lines.

This commit is contained in:
Justin McWilliams
2011-09-16 18:02:21 -04:00
parent 79cec41552
commit 56216d1db3
+5 -2
View File
@@ -2432,8 +2432,11 @@ def curl(url, destinationpath, onlyifnewer=False, etag=None, resume=False,
# percent changed; update display
downloadedpercent = percent
munkicommon.display_percent_done(downloadedpercent, 100)
time.sleep(0.1)
time.sleep(0.1)
else:
# Headers have finished, but not targetsize or HTTP2xx.
# It's possible that Content-Type was not in the headers.
time.sleep(0.1)
if (proc.poll() != None):
break