Py3: Find Content-Length header by bytes

This commit is contained in:
Shadab Zafar 2016-06-09 22:22:07 +05:30 committed by Thomas Kriechbaumer
parent f83433e674
commit 22a94f06e6

View File

@ -209,7 +209,7 @@ class Response(_HTTPMessage):
base.TokValueLiteral(i[1].decode()))
)
if not self.raw:
if not get_header("Content-Length", self.headers):
if not get_header(b"Content-Length", self.headers):
if not self.body:
length = 0
else: