Auto merge of #22354 - jdm:ddg, r=Manishearth

Fix DuckDuckGo HTML search

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22090
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22354)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-12-21 23:32:12 -05:00 committed by GitHub
commit 9caf215beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 13 deletions

View file

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