Skip to content

Commit

Permalink
Revert "feat: issue #2068 Allow HEAD requests to default route includ…
Browse files Browse the repository at this point in the history
…ing admin api key"

This reverts commit 2f97d7b.
  • Loading branch information
johnekent committed Jan 18, 2023
1 parent 0dd631e commit 17e5033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/admin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async def check_token(request: web.Request, handler):
if (
valid_key
or is_unprotected_path(request.path)
or (request.method in ["OPTIONS","HEAD"])
or (request.method == "OPTIONS")
):
return await handler(request)
else:
Expand Down

0 comments on commit 17e5033

Please sign in to comment.