Minor status change

This commit is contained in:
Juan Font Alonso 2022-06-20 20:29:42 +02:00
parent b0b919efb0
commit dec51348e6

2
api.go
View File

@ -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