mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Don't alter query string when submitting form by POST.
This commit is contained in:
parent
27c25116d3
commit
1c7cfafcc5
4 changed files with 8 additions and 5 deletions
|
@ -6,5 +6,7 @@ def main(request, response):
|
|||
else:
|
||||
result = request.POST.first('foo') == 'bar'
|
||||
|
||||
result = result and request.url_parts.query == 'query=1'
|
||||
|
||||
return ([("Content-Type", "text/plain")],
|
||||
"OK" if result else "FAIL")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue