Commit 33184049 authored by Denis Bilenko's avatar Denis Bilenko

minor fix

parent 35effdb4
......@@ -385,9 +385,9 @@ class TestChunkedApp(TestCase):
response = read_http(fd, version='1.0')
self.assertEqual(response.body, self.body())
self.assertEqual(response.headers.get('Transfer-Encoding'), None)
content_length = int(response.headers.get('Content-Length'))
content_length = response.headers.get('Content-Length')
if content_length is not None:
self.assertEqual(content_length, len(self.body()))
self.assertEqual(content_length, str(len(self.body())))
class TestBigChunks(TestChunkedApp):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment