changeset 1299 | ce8024f27837 |
parent 1297 | 60e578eae19d |
--- a/tests/get-with-headers.py Wed Oct 02 01:22:11 2013 +0100 +++ b/tests/get-with-headers.py Mon Oct 07 13:51:33 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')