diff --git a/command/agent/fs_endpoint.go b/command/agent/fs_endpoint.go index c2395ee12..aaadad386 100644 --- a/command/agent/fs_endpoint.go +++ b/command/agent/fs_endpoint.go @@ -29,7 +29,7 @@ func (s *HTTPServer) FileStatRequest(resp http.ResponseWriter, req *http.Request if allocID = strings.TrimPrefix(req.URL.Path, "/v1/client/fs/stat/"); allocID == "" { return nil, allocIDNotPresentErr } - if path := req.URL.Query().Get("path"); path == "" { + if path = req.URL.Query().Get("path"); path == "" { return nil, fileNameNotPresentErr } return s.agent.client.FSStat(allocID, path)