From 569eb44c25e68d9bc2c3b901e15d5801c4eec68c Mon Sep 17 00:00:00 2001 From: neodb dev Date: Mon, 25 Dec 2023 18:48:45 -0500 Subject: [PATCH] allow HEAD for common pages --- catalog/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog/views.py b/catalog/views.py index af01c72a..2675c17f 100644 --- a/catalog/views.py +++ b/catalog/views.py @@ -68,7 +68,7 @@ def embed(request, item_path, item_uuid): ) -@require_http_methods(["GET"]) +@require_http_methods(["GET", "HEAD"]) @user_identity_required def retrieve(request, item_path, item_uuid): # item = get_object_or_404(Item, uid=get_uuid_or_404(item_uuid)) @@ -260,7 +260,7 @@ def reviews(request, item_path, item_uuid): ) -@require_http_methods(["GET"]) +@require_http_methods(["GET", "HEAD"]) def discover(request): cache_key = "public_gallery" gallery_list = cache.get(cache_key, [])