From 436e91e1efd9cd4d95417162dd0b9cd74d1cda29 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sat, 30 Dec 2017 18:34:32 -0500 Subject: [PATCH] fix HTTPInputError reference for improperly terminated chunked request bug introduced in #2225 --- tornado/http1connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/http1connection.py b/tornado/http1connection.py index 331386a15..cf1572602 100644 --- a/tornado/http1connection.py +++ b/tornado/http1connection.py @@ -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: -- 2.47.2