mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 13:35:23 +00:00
Minor status change
This commit is contained in:
parent
b0b919efb0
commit
dec51348e6
2
api.go
2
api.go
@ -71,7 +71,7 @@ func (h *Headscale) RegisterWebAPI(
|
|||||||
machineKeyStr := r.URL.Query().Get("key")
|
machineKeyStr := r.URL.Query().Get("key")
|
||||||
if machineKeyStr == "" {
|
if machineKeyStr == "" {
|
||||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||||
w.WriteHeader(http.StatusUnauthorized)
|
w.WriteHeader(http.StatusBadRequest)
|
||||||
w.Write([]byte("Wrong params"))
|
w.Write([]byte("Wrong params"))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user