Parcourir la source

Fix HTTP method for /ssh/sign

Mariano Cano il y a 7 ans
Parent
commit
b000b59ee6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/api.go

+ 1 - 1
api/api.go

@@ -251,7 +251,7 @@ func (h *caHandler) Route(r Router) {
 	r.MethodFunc("GET", "/roots", h.Roots)
 	r.MethodFunc("GET", "/federation", h.Federation)
 	// SSH CA
-	r.MethodFunc("GET", "/ssh/sign", h.SignSSH)
+	r.MethodFunc("POST", "/ssh/sign", h.SignSSH)
 	r.MethodFunc("GET", "/ssh/keys", h.SSHKeys)
 
 	// For compatibility with old code: