Skip to content

Commit 2ac21dc

Browse files
author
Dan Hertz
committed
add binary flag to open files
1 parent 8226bad commit 2ac21dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nightfall/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def upload_chunk(id, data, headers):
187187
)
188188
return response
189189

190-
with open(location) as fp:
190+
with open(location, 'rb') as fp:
191191
for ix, piece in read_chunks(fp, chunk_size):
192192
headers = self._headers
193193
headers["X-UPLOAD-OFFSET"] = str(ix * chunk_size)

0 commit comments

Comments
 (0)