fix if-non-match
This commit is contained in:
parent
d6894614ae
commit
bedac2db74
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue