summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/commandfuncs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go
index 26b005b..b18f509 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