Commits

Tim Tomes  committed 1ce619c

Fixed the indefinite timeout bug in the cURL command.

  • Participants
  • Parent commits f9485dc

Comments (0)

Files changed (1)

File peepingtom.py

 
 def getHeaders(url, srcpath, timeout):
     #cmd = 'curl -sILk %s --connect-timeout %d' % (url, timeout)
-    cmd = 'curl -sLkD - %s -o %s --connect-timeout %d' % (url, srcpath, timeout)
+    cmd = 'curl -sLkD - %s -o %s --max-time %d' % (url, srcpath, timeout)
     returncode, response = runCommand(cmd)
     return response