Revision 5d0566de

b/lib/server/noded.py
138 138
    """Handle a request.
139 139

  
140 140
    """
141
    if req.request_method.upper() != http.HTTP_PUT:
142
      raise http.HttpBadRequest()
141
    # FIXME: Remove HTTP_PUT in Ganeti 2.7
142
    if req.request_method.upper() not in (http.HTTP_PUT, http.HTTP_POST):
143
      raise http.HttpBadRequest("Only PUT and POST methods are supported")
143 144

  
144 145
    path = req.request_path
145 146
    if path.startswith("/"):

Also available in: Unified diff