]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
httputil: Remove a debug print left in by mistake 3511/head
authorBen Darnell <ben@bendarnell.com>
Thu, 12 Jun 2025 15:04:46 +0000 (11:04 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Jun 2025 15:04:46 +0000 (11:04 -0400)
Found thanks to #3510

tornado/httputil.py

index 7f22da026a8da265d015309e41c02f6de7062cc6..bea9145ef98c30ece797abdb48f62546867de93a 100644 (file)
@@ -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