From d5d915d3505501a5030840a6e469c8737aaa46df Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 12 Jun 2025 11:04:46 -0400 Subject: [PATCH] httputil: Remove a debug print left in by mistake Found thanks to #3510 --- tornado/httputil.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tornado/httputil.py b/tornado/httputil.py index 7f22da02..bea9145e 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -502,7 +502,6 @@ class HTTPServerRequest: else: raise HTTPInputError("Missing Host header") if not _ABNF.host.fullmatch(self.host): - print(_ABNF.host.pattern) raise HTTPInputError("Invalid Host header: %r" % self.host) if "," in self.host: # https://www.rfc-editor.org/rfc/rfc9112.html#name-request-target -- 2.47.2