]> git.ipfire.org Git - thirdparty/tornado.git/commit
httputil: Centralize regexes based directly on RFCs
authorBen Darnell <ben@bendarnell.com>
Thu, 27 Mar 2025 20:22:33 +0000 (16:22 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 27 Mar 2025 20:59:52 +0000 (16:59 -0400)
commit1cfc0d127a287cd732ff9f5419450a7ce1163454
treee13046c7be553a17195f56644094475c87312132
parentf3a9bd4f1b55aebe0aee1938a09d789dbd8a3da3
httputil: Centralize regexes based directly on RFCs

This will make it easier to stay in strict conformance with the RFCs.
Note that this commit makes a few small semantic changes to response
start-line parsing: status codes must be exactly three digits, and
control characters are not allowed in reason phrases.
tornado/httputil.py