Skip to content

Commit

Permalink
Update handlers.py
Browse files Browse the repository at this point in the history
Fixes bug rendering images on Windows.
  • Loading branch information
alfredodev committed Feb 24, 2014
1 parent 688a73b commit 4b530ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wptserve/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def load_headers(self, path):
for line in headers_file if line]

def get_data(self, response, path, byte_ranges):
with open(path) as f:
with open(path , 'rb') as f:
if byte_ranges is None:
return f.read()
else:
Expand Down

0 comments on commit 4b530ed

Please sign in to comment.