]> 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:14:25 +0000 (14:14 -0400)
commitc7ae10d668f10cb5797fa88eeca9b3c63644b1cb
treed8fce428a97d83249709f22dbc4cb8ac8ba1ec35
parent5a7719e0e9e3c682e06870859ee11cae51d8f9ca
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.

Conflicts:
tornado/websocket.py
tornado/http1connection.py
tornado/simple_httpclient.py
tornado/test/simple_httpclient_test.py
tornado/websocket.py