]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fix HTTPInputError reference for improperly terminated chunked request
authorPierce Lopez <pierce.lopez@gmail.com>
Sat, 30 Dec 2017 23:34:32 +0000 (18:34 -0500)
committerBen Darnell <ben@bendarnell.com>
Fri, 5 Jan 2018 03:13:21 +0000 (22:13 -0500)
bug introduced in #2225

tornado/http1connection.py

index 9b33c94ed10f26fe782181434327eef033b06bc8..32bed6c961664918001c4e6e257c39f4051ff90a 100644 (file)
@@ -595,7 +595,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: