]> git.ipfire.org Git - thirdparty/tornado.git/commit
Catch exceptions from parse_qs_bytes in POST bodies and log them.
authorBen Darnell <ben@bendarnell.com>
Wed, 6 Nov 2013 19:16:01 +0000 (14:16 -0500)
committerBen Darnell <ben@bendarnell.com>
Wed, 6 Nov 2013 19:16:01 +0000 (14:16 -0500)
commit463d9ecda872f9df9644920103fcbfa4b6aef06f
treef6b1c593cde0215387e3433991c68544495a5c19
parentfa47362e6805940bb8443eaf28e43f93a835438c
Catch exceptions from parse_qs_bytes in POST bodies and log them.

This is consistent with error handling for multipart/form-data.
parse_qs is very liberal, but the conversion to unicode
on python 3 may fail.  This is most common for binary data sent from
clients where x-www-form-urlencoded is the default, which is not
actually intended to be interpreted as arguments.

Closes #921.
tornado/httputil.py
tornado/test/httpserver_test.py