Update web-platform-tests to revision 1e42017386ce1eaeed4925fb8bc7f5417752019a

This commit is contained in:
Ms2ger 2016-07-05 17:05:14 +02:00
parent 5574a4e4c8
commit a972fdb353
2003 changed files with 16788 additions and 3140 deletions

View file

@ -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")