Bug 471020 - Update python script of wpt tests to perform binary read of image file. r=bz

This commit is contained in:
Christoph Kerschbaumer 2016-07-20 12:34:03 +02:00
parent 1efa7507f0
commit 922a233110

View File

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