diff --git a/lib/server/noded.py b/lib/server/noded.py index e852ca90d3eb9eb3aa3a0226627e3448d75d35d4..1135fe9683e823511716dad846641c03ccfec1b0 100644 --- a/lib/server/noded.py +++ b/lib/server/noded.py @@ -138,8 +138,9 @@ class NodeHttpServer(http.server.HttpServer): """Handle a request. """ - if req.request_method.upper() != http.HTTP_PUT: - raise http.HttpBadRequest() + # FIXME: Remove HTTP_PUT in Ganeti 2.7 + if req.request_method.upper() not in (http.HTTP_PUT, http.HTTP_POST): + raise http.HttpBadRequest("Only PUT and POST methods are supported") path = req.request_path if path.startswith("/"):