Skip to content

Commit

Permalink
rangecache: use 'b' for file open
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Jan 12, 2015
1 parent 14657fb commit fb4bf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywb/webapp/rangecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def handle_range(self, wbrequest, digest, wbresponse_func,
maxlen = min(maxlen, end - start + 1)

def read_range():
with open(spec['name']) as fh:
with open(spec['name'], 'rb') as fh:
fh.seek(start)
fh = LimitReader.wrap_stream(fh, maxlen)
while True:
Expand Down

0 comments on commit fb4bf81

Please sign in to comment.