Skip to content

Commit cb90f54

Browse files
committed
choose io depending on file type
1 parent 85e5b1e commit cb90f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyexcel_webio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def dummy_func(content, content_type=None, status=200):
148148

149149

150150
def make_response(pyexcel_instance, file_type, status=200, **keywords):
151-
io = BytesIO()
151+
io = pe._get_io(file_type)
152152
pyexcel_instance.save_to_memory(file_type, io, **keywords)
153153
io.seek(0)
154154
return ExcelResponse(io.read(), content_type=FILE_TYPE_MIME_TABLE[file_type], status=status)

0 commit comments

Comments
 (0)