Browse Source

Merge pull request #141 from Hoverbear/patch-1

Added a PUT handler that copies the behavior of the POST handler.
Xiang Li 12 years ago
parent
commit
29b7aab5fc
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: