Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/nosniff/resources/js.py

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 def main(request, response):
2 outcome = request.GET.first("outcome", "f")
3 type = request.GET.first("type", "Content-Type missing")
4
5 content = "// nothing to see here"
6 content += "\n"
7 content += "log('FAIL: " + type + "')" if (outcome == "f") else "p()"
8
9 response.add_required_headers = False
10 response.writer.write_status(200)
11 response.writer.write_header("x-content-type-options", "nosniff")
12 response.writer.write_header("content-length", len(content))
13 if(type != "Content-Type missing"):
14 response.writer.write_header("content-type", type)
15 response.writer.end_headers()
16
17 response.writer.write(content)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698