tests/get-with-headers.py
branchstable
changeset 1297 60e578eae19d
parent 1201 6f2f7246e4be
--- a/tests/get-with-headers.py	Thu Aug 29 09:22:13 2013 -0700
+++ b/tests/get-with-headers.py	Wed Oct 02 22:46:32 2013 +0100
@@ -43,8 +43,9 @@
             print "%s: %s" % (h, response.getheader(h))
     if not headeronly:
         print
-        data = response.read()
-        sys.stdout.write(data)
+        if response.status != 500:
+            data = response.read()
+            sys.stdout.write(data)
 
         if twice and response.getheader('ETag', None):
             tag = response.getheader('ETag')