changelog + PUT

This commit is contained in:
Alex Dadgar
2017-10-27 10:43:57 -07:00
parent 403eb4e2a7
commit 2464b02aa2
2 changed files with 2 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ func (s *HTTPServer) nodeQuery(resp http.ResponseWriter, req *http.Request,
}
func (s *HTTPServer) nodePurge(resp http.ResponseWriter, req *http.Request, nodeID string) (interface{}, error) {
if req.Method != "POST" {
if req.Method != "PUT" && req.Method != "POST" {
return nil, CodedError(405, ErrInvalidMethod)
}
args := structs.NodeDeregisterRequest{