From 2e4c09155a750895a306f8900a6d5f4597db5287 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 28 Apr 2022 10:31:59 -0400 Subject: cmd: Fix unix socket addresses for admin API requests (#4742) Fixes a regression in c2327161f725c820826587381f37d651a2b9736d --- cmd/commandfuncs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 -- cgit v1.2.3