From 607c5190328cf15cd237cfda19a1f4561905efd6 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:42:00 -0400 Subject: pkg/api/api0/accounts: Fix OPTIONS allow header --- pkg/api/api0/accounts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/api/api0') diff --git a/pkg/api/api0/accounts.go b/pkg/api/api0/accounts.go index 6faa1b9..d40ec02 100644 --- a/pkg/api/api0/accounts.go +++ b/pkg/api/api0/accounts.go @@ -199,7 +199,7 @@ func (h *Handler) handleAccountsLookupUID(w http.ResponseWriter, r *http.Request w.Header().Set("Pragma", "no-cache") if r.Method == http.MethodOptions { - w.Header().Set("Allow", "OPTIONS, GET") + w.Header().Set("Allow", "OPTIONS, HEAD, GET") w.WriteHeader(http.StatusNoContent) return } @@ -255,7 +255,7 @@ func (h *Handler) handleAccountsGetUsername(w http.ResponseWriter, r *http.Reque w.Header().Set("Pragma", "no-cache") if r.Method == http.MethodOptions { - w.Header().Set("Allow", "OPTIONS, GET") + w.Header().Set("Allow", "OPTIONS, HEAD, GET") w.WriteHeader(http.StatusNoContent) return } -- cgit v1.2.3