diff options
| author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 16:42:00 -0400 |
|---|---|---|
| committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 16:42:00 -0400 |
| commit | 607c5190328cf15cd237cfda19a1f4561905efd6 (patch) | |
| tree | 59fe430cade6ce903ee8bcb8d9c19d8002db2d43 /pkg/api | |
| parent | 4b31afcc06b2ba549c1b816602f2ab8868dec0aa (diff) | |
| download | Atlas-607c5190328cf15cd237cfda19a1f4561905efd6.tar.gz Atlas-607c5190328cf15cd237cfda19a1f4561905efd6.zip | |
pkg/api/api0/accounts: Fix OPTIONS allow header
Diffstat (limited to 'pkg/api')
| -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 } |
