Skip to content

Commit

Permalink
return 200 response for head request
Browse files Browse the repository at this point in the history
  • Loading branch information
munnsmunns committed Nov 12, 2024
1 parent 9545000 commit 4541837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hawc/apps/lit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def tagtree(self, request, pk, *args, **kwargs):
create_object_log(
"Updated (tagtree replace)", assessment, assessment.id, self.request.user.id
)
elif self.request.method == "HEAD":
return Response(status=200)
else:
raise ValidationError(f"Request method {self.request.method} is not allowed.")
return Response(serializer.data)
Expand Down

0 comments on commit 4541837

Please sign in to comment.