fix if-non-match

This commit is contained in:
Laura Klünder 2016-12-22 14:22:29 +01:00
parent d6894614ae
commit bedac2db74

View file

@ -248,7 +248,7 @@ def map_image(request, area, level):
if_none_match = request.META.get('HTTP_IF_NONE_MATCH')
if if_none_match:
if if_none_match != etag:
if if_none_match == etag:
return HttpResponseNotModified()
response = HttpResponse(content_type='image/png')