Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenya committed Jul 16, 2024
1 parent 2b6e9e8 commit 6b4f9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailcache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def process_request(self, request: WSGIRequest) -> Optional[HttpResponse]:
response: HttpResponse
if "If-None-Match" in request.headers and "Etag" in response.headers and \
response.headers["Etag"] in parse_etags(
request.headers["If-None-Match"]):
request.headers["If-None-Match"]):
not_modified = HttpResponse(status=304)
not_modified.headers["Etag"] = response.headers["Etag"]
# TODO: Cache-Control and Expires?
Expand Down

0 comments on commit 6b4f9c7

Please sign in to comment.