mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
cmd: Fix unix socket addresses for admin API requests (#4742)
Fixes a regression in c2327161f7
This commit is contained in:
parent
dcc98da4d2
commit
2e4c09155a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue