]> git.ipfire.org Git - thirdparty/tornado.git/commit
Correctly handle 204 response codes that do not include a content-length.
authorBen Darnell <ben@bendarnell.com>
Sun, 10 Aug 2014 18:02:39 +0000 (14:02 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 10 Aug 2014 18:02:39 +0000 (14:02 -0400)
commit93ae079795f51e23d11a8f7d05fa48ea6bb19cbf
treef3c121a51cd30d5088a50c76e34d9aeac51cc67b
parent2026dba3b33035d9c920e963a48867e6965adad3
Correctly handle 204 response codes that do not include a content-length.

If a server sends a 204 with no content-length we would wait for the server
to close the connection instead of ending the request (any such servers
are ignoring the "Connection: close" header we send, but apparently exist).

Move some content-length logic from simple_httpclient.py to http1connection.py.

Fix the client-side use of on_connection_close; this affects the
handling of any HTTPInputException.

This fixes regressions relative to Tornado 3.2.
tornado/http1connection.py
tornado/simple_httpclient.py
tornado/test/simple_httpclient_test.py
tornado/websocket.py