allow HEAD for common pages
This commit is contained in:
parent
3bf644e5de
commit
569eb44c25
1 changed files with 2 additions and 2 deletions
|
@ -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, [])
|
||||
|
|
Loading…
Add table
Reference in a new issue