-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1500405 [wpt PR 13615] - MIME types: test 0x0B and 0x0C, a=testonly
Automatic update from web-platform-testsMIME types: test 0x0B, 0x0C, and newlines For whatwg/mimesniff#90. -- wpt-commits: 6aeb68e38a61c2e332a7592f5cad640cf58b73f2 wpt-pr: 13615 UltraBlame original commit: 726abced3085ed5e9ef5b0df43e9561cac6f590d
- Loading branch information
Showing
5 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
testing/web-platform/tests/mimesniff/mime-types/resources/mime-charset.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
def main(request, response): | ||
response.headers.set("Content-Type", request.GET.first("type")); | ||
response.content = "<meta charset=utf-8>\n<script>document.write(document.characterSet)</script>" | ||
content = "<meta charset=utf-8>\n<script>document.write(document.characterSet)</script>" | ||
|
||
|
||
|
||
|
||
|
||
|
||
response.add_required_headers = False | ||
output = "HTTP/1.1 200 OK\r\n" | ||
output += "Content-Length: " + str(len(content)) + "\r\n" | ||
output += "Content-Type: " + request.GET.first("type") + "\r\n" | ||
output += "\r\n" | ||
output += content | ||
response.writer.write(output) | ||
response.close_connection = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters