| Index: third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py b/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
|
| index 78f96fe3145c6544f49229792a9267fa8bb0dae9..467875453c9dc64aac51add3f4a617d941820972 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
|
| @@ -1,17 +1,10 @@
|
| def main(request, response):
|
| if request.headers.get('Content-Type') == 'application/x-www-form-urlencoded':
|
| - if request.body == 'foo=bara':
|
| - return 'OK'
|
| - else:
|
| - return 'FAIL'
|
| + result = request.body == 'foo=bara'
|
| elif request.headers.get('Content-Type') == 'text/plain':
|
| - if request.body == 'qux=baz\r\n':
|
| - return 'OK'
|
| - else:
|
| - return 'FAIL'
|
| + result = request.body == 'qux=baz\r\n'
|
| else:
|
| - if request.POST.first('foo') == 'bar':
|
| - return 'OK'
|
| - else:
|
| - return 'FAIL'
|
| + result = request.POST.first('foo') == 'bar'
|
|
|
| + return ([("Content-Type", "text/plain")],
|
| + "OK" if result else "FAIL")
|
|
|