##// END OF EJS Templates
get-with-headers: don't block indefinitely if the server had an internal error...
Javi Merino -
r19865:ba6577a1 default
parent child Browse files
Show More
@@ -43,6 +43,7 b' def request(host, path, show):'
43 print "%s: %s" % (h, response.getheader(h))
43 print "%s: %s" % (h, response.getheader(h))
44 if not headeronly:
44 if not headeronly:
45 print
45 print
46 if response.status != 500:
46 data = response.read()
47 data = response.read()
47 sys.stdout.write(data)
48 sys.stdout.write(data)
48
49
General Comments 0
You need to be logged in to leave comments. Login now