##// 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,8 +43,9 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 data = response.read()
46 if response.status != 500:
47 sys.stdout.write(data)
47 data = response.read()
48 sys.stdout.write(data)
48
49
49 if twice and response.getheader('ETag', None):
50 if twice and response.getheader('ETag', None):
50 tag = response.getheader('ETag')
51 tag = response.getheader('ETag')
General Comments 0
You need to be logged in to leave comments. Login now