diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index 45fd18c3..1fea83cb 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -685,7 +685,7 @@ class FileBatchCrud(BatchCrud): path = batch.filepath(config) response = FileResponse(path, request=self.request) response.headers[b'Content-Length'] = str(batch.filesize(config)) - response.headers[b'Content-Disposition'] = b'attachment; filename={0}'.format(batch.filename) + response.headers[b'Content-Disposition'] = b'attachment; filename="{0}"'.format(batch.filename) return response