mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-13 19:33:06 +09:00
Minor status change
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user