diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 26b005bc..b18f5090 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -669,7 +669,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io } origin := "http://" + parsedAddr.JoinHostPort(0) if parsedAddr.IsUnixNetwork() { - origin = "unixsocket" // hack so that http.NewRequest() is happy + origin = "http://unixsocket" // hack so that http.NewRequest() is happy } // form the request