open files in binary mode in unit test web server (may fix some issues on windows)

This commit is contained in:
Arvid Norberg 2014-01-21 00:04:52 +00:00
parent 96465e8882
commit 65a847fd43
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
try:
filename = s.path[1:]
# serve file by invoking default handler
f = open(filename)
f = open(filename, 'rb')
size = int(os.stat(filename).st_size)
start_range = 0
end_range = size