Ticket #3206: common.py.patch

File common.py.patch, 682 bytes (added by Manuel Saelices <msaelices@…>, 17 years ago)

Patch that fixes previous patch

  • common.py

     
    7575        # Use ETags, if requested.
    7676        if settings.USE_ETAGS:
    7777            etag = md5.new(response.content).hexdigest()
    78             if response.status_code >= 200 and response.status_code < 300 and response.statusrequest.META.get('HTTP_IF_NONE_MATCH') == etag:
     78            if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag:
    7979                response = http.HttpResponseNotModified()
    8080            else:
    8181                response['ETag'] = etag
Back to Top