diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 11:35:14 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 11:35:14 -0400 |
commit | 3fbc40aed664a935fa969b2a498b2619f55d3514 (patch) | |
tree | b32324fa658b1414100efaf098a55b5dcd7c6db0 /pkg/api | |
parent | e21d1c741ae498d6790965117b824737de4e8c97 (diff) | |
download | Atlas-3fbc40aed664a935fa969b2a498b2619f55d3514.tar.gz Atlas-3fbc40aed664a935fa969b2a498b2619f55d3514.zip |
pkg/api/api0: Send status for OPTIONS request
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/api0/playerinfo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/api0/playerinfo.go b/pkg/api/api0/playerinfo.go index 94ff117..667c86f 100644 --- a/pkg/api/api0/playerinfo.go +++ b/pkg/api/api0/playerinfo.go @@ -75,6 +75,7 @@ func (h *Handler) handlePlayer(w http.ResponseWriter, r *http.Request) { if r.Method == http.MethodOptions { w.Header().Set("Allow", "OPTIONS, GET, HEAD") + w.WriteHeader(http.StatusNoContent) return } |