Minor status change
This commit is contained in:
parent
b0b919efb0
commit
dec51348e6
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -71,7 +71,7 @@ func (h *Headscale) RegisterWebAPI(
|
|||
machineKeyStr := r.URL.Query().Get("key")
|
||||
if machineKeyStr == "" {
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.WriteHeader(http.StatusUnauthorized)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
w.Write([]byte("Wrong params"))
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue