fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display fixes: shelf tags, search results.
[wolnelektury.git]
/
apps
/
reporting
/
utils.py
diff --git
a/apps/reporting/utils.py
b/apps/reporting/utils.py
index
06a1680
..
8ecb9b0
100755
(executable)
--- a/
apps/reporting/utils.py
+++ b/
apps/reporting/utils.py
@@
-113,7
+113,7
@@
def generated_file_view(file_name, mime_type, send_name=None, signals=None):
else:
name = send_name
else:
name = send_name
- response = HttpResponse(
mime
type=mime_type)
+ response = HttpResponse(
content_
type=mime_type)
response['Content-Disposition'] = 'attachment; filename=%s' % name
with open(file_path) as f:
for chunk in read_chunks(f):
response['Content-Disposition'] = 'attachment; filename=%s' % name
with open(file_path) as f:
for chunk in read_chunks(f):