Explorar el Código

Merge pull request #141 from Hoverbear/patch-1

Added a PUT handler that copies the behavior of the POST handler.
Xiang Li hace 12 años
padre
commit
29b7aab5fc
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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)
 		return GetHttpHandler(w, req)
 	case "POST":
 	case "POST":
 		return SetHttpHandler(w, req)
 		return SetHttpHandler(w, req)
+	case "PUT":
+		return SetHttpHandler(w, req)
 	case "DELETE":
 	case "DELETE":
 		return DeleteHttpHandler(w, req)
 		return DeleteHttpHandler(w, req)
 	default:
 	default: