Francis Lavoie
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
cmd/commandfuncs.go
|
@ -669,7 +669,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io |
|
|
} |
|
|
} |
|
|
origin := "http://" + parsedAddr.JoinHostPort(0) |
|
|
origin := "http://" + parsedAddr.JoinHostPort(0) |
|
|
if parsedAddr.IsUnixNetwork() { |
|
|
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
|
|
|
// form the request
|
|
|