Просмотр исходного кода

Merge pull request #141 from Hoverbear/patch-1

Added a PUT handler that copies the behavior of the POST handler.
Xiang Li 12 лет назад
Родитель
Сommit
29b7aab5fc
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      etcd_handlers.go

+ 2 - 0
etcd_handlers.go

@@ -48,6 +48,8 @@ func Multiplexer(w http.ResponseWriter, req *http.Request) error {
 		return GetHttpHandler(w, req)
 	case "POST":
 		return SetHttpHandler(w, req)
+	case "PUT":
+		return SetHttpHandler(w, req)
 	case "DELETE":
 		return DeleteHttpHandler(w, req)
 	default: