зеркало из https://github.com/mozilla/gecko-dev.git
Bug 471020 - Update python script of wpt tests to perform binary read of image file. r=bz
This commit is contained in:
Родитель
1efa7507f0
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче