X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ee4f3e79135a34ad7ed845453adbe8dfc1e420c1..db8146ee85026b477da41a4e02a0833ee35ee628:/apps/cover/views.py?ds=sidebyside diff --git a/apps/cover/views.py b/apps/cover/views.py index 6b3344b4..4a6e575b 100644 --- a/apps/cover/views.py +++ b/apps/cover/views.py @@ -46,7 +46,7 @@ def preview(request, book, chunk=None, rev=None): except: return HttpResponseRedirect(os.path.join(settings.STATIC_URL, "img/sample_cover.png")) cover = DefaultEbookCover(info) - response = HttpResponse(mimetype=cover.mime_type()) + response = HttpResponse(content_type=cover.mime_type()) image = cover.image().resize(PREVIEW_SIZE, Image.ANTIALIAS) image.save(response, cover.format) return response