From ee369382aa29daa5fa525edb1417722f28b35477 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 13 Jan 2016 13:21:03 -0800 Subject: [PATCH] Fixed the query for extracting path from stat --- command/agent/fs_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)