trac#5397: Allow decode_request to parse content-type headers with extra options.
authorBen Sturmfels <ben@sturm.com.au>
Tue, 19 Jan 2016 12:53:52 +0000 (23:53 +1100)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 21 Jan 2016 18:53:54 +0000 (10:53 -0800)
commit2fdc14a2424d7687358598441db8bcfd8fe9eb69
tree7e3ec35ec1a0e915831944b551c4a9447f452e0d
parent4c77f3d56396a78f2708e59b9cb6c8f150b39b6d
trac#5397: Allow decode_request to parse content-type headers with extra options.

It previously parsed "Content-Type: application/x-www-form-urlencoded", but not "Content-Type: application/x-www-form-urlencoded; charset=utf-8".
mediagoblin/tests/test_tools.py [new file with mode: 0644]
mediagoblin/tools/request.py