mirror of
https://github.com/servo/servo.git
synced 2025-07-01 12:33:40 +01:00
12 lines
337 B
Python
12 lines
337 B
Python
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'
|
|
else:
|
|
if request.POST.first('foo') == 'bar':
|
|
return 'OK'
|
|
else:
|
|
return 'FAIL'
|
|
|