diff --git a/cheroot/server.py b/cheroot/server.py index 91564611c0..53896e7064 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -732,6 +732,12 @@ def parse_request(self): 'allowed bytes.', ) return + except ValueError: + self.simple_response( + '400 Bad request', + 'Invalid Content Header.', + ) + return else: if not success: return