提交 436e91e1 编写于 作者: P Pierce Lopez

fix HTTPInputError reference for improperly terminated chunked request

bug introduced in #2225
上级 6fb82ae7
......@@ -601,7 +601,7 @@ class HTTP1Connection(httputil.HTTPConnection):
if chunk_len == 0:
crlf = yield self.stream.read_bytes(2)
if crlf != b'\r\n':
raise HTTPInputError("improperly terminated chunked request")
raise httputil.HTTPInputError("improperly terminated chunked request")
return
total_size += chunk_len
if total_size > self._max_body_size:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册