mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add test for encoding text/plain in forms
This commit is contained in:
parent
d1c0af9ae7
commit
5e078870a2
2 changed files with 26 additions and 0 deletions
|
@ -4,6 +4,11 @@ def main(request, response):
|
|||
return 'OK'
|
||||
else:
|
||||
return 'FAIL'
|
||||
elif request.headers.get('Content-Type') == 'text/plain':
|
||||
if request.body == 'qux=baz\r\n':
|
||||
return 'OK'
|
||||
else:
|
||||
return 'FAIL'
|
||||
else:
|
||||
if request.POST.first('foo') == 'bar':
|
||||
return 'OK'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue