mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-05 16:12:20 -08:00
badrequest -> methodnotallowed
This commit is contained in:
1 parent
ace8630d89
commit
b789daaf99
1 file changed
+1
-1
+1
-1
@@ -114,7 +114,7 @@ func (c *Consensus) makeCommandMux() *http.ServeMux {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/join", func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != httpm.POST {
|
||||
http.Error(w, "Bad Request", http.StatusBadRequest)
|
||||
http.Error(w, "Method must be POST", http.StatusMethodNotAllowed)
|
||||
return
|
||||
}
|
||||
defer r.Body.Close()
|
||||
|
||||
Reference in new issue
Block a user