mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 471020 - Update python script of wpt tests to perform binary read of image file. r=bz
This commit is contained in:
parent
1efa7507f0
commit
922a233110
@ -3,7 +3,7 @@ import os.path
|
||||
def main(request, response):
|
||||
type = request.GET.first("type", None)
|
||||
|
||||
body = open(os.path.join(os.path.dirname(__file__), "../../../images/blue96x96.png")).read()
|
||||
body = open(os.path.join(os.path.dirname(__file__), "../../../images/blue96x96.png"), "rb").read()
|
||||
|
||||
response.add_required_headers = False
|
||||
response.writer.write_status(200)
|
||||
|
Loading…
x
Reference in New Issue
Block a user