aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_protocol_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r--test/test_protocol_http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py
index 9e043049..bf569fb7 100644
--- a/test/test_protocol_http.py
+++ b/test/test_protocol_http.py
@@ -80,7 +80,7 @@ class TestHTTPResponse:
assert HTTPResponse.from_stream(s, "GET").code == 204
s = StringIO(_s)
- r = HTTPResponse.from_stream(s, "HEAD")
+ r = HTTPResponse.from_stream(s, "HEAD") # HEAD must not have content by spec. We should leave it on the pipe.
assert r.code == 200
assert r.content == ""
- tutils.raises("Invalid server response: 'content", HTTPResponse.from_stream, s, "GET") \ No newline at end of file
+ tutils.raises("Invalid server response: 'content", HTTPResponse.from_stream, s, "GET")