summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-04-28 10:31:59 -0400
committerGitHub <noreply@github.com>2022-04-28 08:31:59 -0600
commit2e4c09155a750895a306f8900a6d5f4597db5287 (patch)
tree87c9dc75b6a85646f39bd03bbce80f6f5b46b7f1 /cmd
parentdcc98da4d25dc13183f4bb4e913439a160bb1adf (diff)
cmd: Fix unix socket addresses for admin API requests (#4742)
Fixes a regression in c2327161f725c820826587381f37d651a2b9736d
Diffstat (limited to 'cmd')
-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