]> git.ipfire.org Git - thirdparty/tornado.git/commit
httputil: Add types for elements of HTTPHeaders
authorBen Darnell <ben@bendarnell.com>
Fri, 7 Jun 2024 18:42:28 +0000 (14:42 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 7 Jun 2024 18:53:09 +0000 (14:53 -0400)
commite7dff512f8329dfc92590f144abbeaff55fce6ad
treeb8d7d239d857e12d7bd027f28d9b0f12e9ac5cb1
parent5f9833160959552231c72f7127cf6b7774f6746b
httputil: Add types for elements of HTTPHeaders

Revealed an issue in websocket.py in which bytes were used when it
should have been str. This avoided being a bug because something
down the line was converting it to str but it was still a logical
type error.

The change to httputil.py was taken from #3329 (thanks mslynch).

Closes #3329
Fixes #3328
tornado/httputil.py
tornado/web.py
tornado/websocket.py