mirror of
https://github.com/munki/munki.git
synced 2026-04-24 13:59:56 -05:00
Don't sleep for .1 seconds in between reading HTTP header lines.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user