Commit a7862455 authored by Iustin Pop's avatar Iustin Pop
Browse files

Remove support for PUT in noded



This takes care of a FIXME; 2.6 already uses the new method, so we're
good during upgrades.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 5a7cb9d3
......@@ -139,9 +139,8 @@ class NodeRequestHandler(http.server.HttpServerHandler):
"""Handle a request.
"""
# 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")
if req.request_method.upper() != http.HTTP_POST:
raise http.HttpBadRequest("Only the POST method is supported")
path = req.request_path
if path.startswith("/"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment