Skip to content

Commit

Permalink
client: Update calls to unixHTTPClient.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed May 2, 2024
1 parent fc88e76 commit 2fa975d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func ConnectLXDUnixWithContext(ctx context.Context, path string, args *Connectio
path = shared.HostPath(path)

// Setup the HTTP client
httpClient, err := unixHTTPClient(args, path)
httpClient, err := unixHTTPClient(args, path, args.TransportWrapper)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (r *ProtocolLXD) GetPrivateImageFile(fingerprint string, secret string, req
unixURI := fmt.Sprintf("http://unix.socket%s", uri)

// Setup the HTTP client
devlxdHTTP, err := unixHTTPClient(nil, "/dev/lxd/sock")
devlxdHTTP, err := unixHTTPClient(nil, "/dev/lxd/sock", nil)
if err == nil {
resp, err := lxdDownloadImage(fingerprint, unixURI, r.httpUserAgent, devlxdHTTP.Do, req)
if err == nil {
Expand Down
2 changes: 1 addition & 1 deletion client/simplestreams_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (r *ProtocolSimpleStreams) GetImageFile(fingerprint string, req ImageFileRe
unixURI := fmt.Sprintf("http://unix.socket/1.0/images/%s/export", url.PathEscape(fingerprint))

// Setup the HTTP client
devlxdHTTP, err := unixHTTPClient(nil, "/dev/lxd/sock")
devlxdHTTP, err := unixHTTPClient(nil, "/dev/lxd/sock", nil)
if err == nil {
resp, err := lxdDownloadImage(fingerprint, unixURI, r.httpUserAgent, devlxdHTTP.Do, req)
if err == nil {
Expand Down

0 comments on commit 2fa975d

Please sign in to comment.