diff options
| -rw-r--r-- | pkg/api/api0/accounts.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
