Revision a7862455
b/lib/server/noded.py | ||
---|---|---|
139 | 139 |
"""Handle a request. |
140 | 140 |
|
141 | 141 |
""" |
142 |
# FIXME: Remove HTTP_PUT in Ganeti 2.7 |
|
143 |
if req.request_method.upper() not in (http.HTTP_PUT, http.HTTP_POST): |
|
144 |
raise http.HttpBadRequest("Only PUT and POST methods are supported") |
|
142 |
if req.request_method.upper() != http.HTTP_POST: |
|
143 |
raise http.HttpBadRequest("Only the POST method is supported") |
|
145 | 144 |
|
146 | 145 |
path = req.request_path |
147 | 146 |
if path.startswith("/"): |
Also available in: Unified diff