From: Ben Darnell Date: Mon, 16 Mar 2026 19:21:50 +0000 (-0400) Subject: web: Fix an incomplete comment that was omitted from 459e1c3d3b X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=17c83add784a45ffb5866a525fa3a94abea0fd1d;p=thirdparty%2Ftornado.git web: Fix an incomplete comment that was omitted from 459e1c3d3b --- diff --git a/tornado/web.py b/tornado/web.py index ec7ec3f5..c3efdbd5 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -712,7 +712,8 @@ class RequestHandler: # When a semicolon check is added to the standard library (and the release has had time # for adoption), this check may be removed, but be mindful of the fact that this may # change the timing of the exception (to the generation of the Set-Cookie header in - # flush()). We m + # flush()). We may want to add a call to self._new_cookie.output() at the end of this + # method to ensure that exceptions are raised when they will be most useful. if attr_value is not None and re.search(r"[\x00-\x20\x3b\x7f]", attr_value): raise http.cookies.CookieError( f"Invalid cookie attribute {attr_name}={attr_value!r} for cookie {name!r}"