mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 1e42017386ce1eaeed4925fb8bc7f5417752019a
This commit is contained in:
parent
5574a4e4c8
commit
a972fdb353
2003 changed files with 16788 additions and 3140 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue