mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-28 10:47:50 +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")
|
||||
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…
x
Reference in New Issue
Block a user