Skip to content

Commit

Permalink
fix: add GET to OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Jun 13, 2024
1 parent 63c3208 commit e962b6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aap_eda/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def determine_actions(self, request, view):
the fields that are accepted for 'PUT' and 'POST' methods.
"""
actions = {}
for method in {"PUT", "PATCH", "POST"} & set(view.allowed_methods):
for method in {"GET", "PUT", "PATCH", "POST"} & set(
view.allowed_methods
):
view.request = clone_request(request, method)
try:
# Test global permissions
Expand Down

0 comments on commit e962b6d

Please sign in to comment.