Skip to content

Commit

Permalink
cmd: Fix unix socket addresses for admin API requests (#4742)
Browse files Browse the repository at this point in the history
Fixes a regression in c232716
  • Loading branch information
francislavoie committed Apr 28, 2022
1 parent dcc98da commit 2e4c091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/commandfuncs.go
Expand Up @@ -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
Expand Down

0 comments on commit 2e4c091

Please sign in to comment.