Skip to content

Commit

Permalink
HttpResponseNotModified does not accept mimetime parameter. @vinyll#12
Browse files Browse the repository at this point in the history
  • Loading branch information
egon0 committed Nov 5, 2016
1 parent 7f46190 commit 3543708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagefit/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def resize(request, path_name, format, url):
statobj = os.stat(image.path)
if not was_modified_since(request.META.get('HTTP_IF_MODIFIED_SINCE'),
statobj[stat.ST_MTIME], statobj[stat.ST_SIZE]):
return HttpResponseNotModified(mimetype=image.mimetype)
return HttpResponseNotModified()

if settings.IMAGEFIT_CACHE_ENABLED:
image.cache = cache
Expand Down

0 comments on commit 3543708

Please # to comment.