Browse Source

Added a PUT handler that copies the behavior of the POST handler. Fixes #139.

Andrew Hobden 12 years ago
parent
commit
4f436ae70a
1 changed files with 2 additions and 0 deletions
  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: