ソースを参照

Fix HTTP method for /ssh/sign

Mariano Cano 7 年 前
親
コミット
083e203c46
1 ファイル変更、1 行追加、1 行削除
  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: