Skip to content

Commit

Permalink
Enable WithHTTPGet for Connect client
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanburen committed Oct 21, 2024
1 parent a28b4ce commit 2cc670a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ type client struct {

func newClient(httpClient connect.HTTPClient, remote, username, token string) *client {
authInterceptor := newAuthInterceptor(username, token)
options := connect.WithInterceptors(authInterceptor)
options := connect.WithClientOptions(
connect.WithInterceptors(authInterceptor),
connect.WithHTTPGet(),
)
address := "https://" + remote
return &client{
moduleServiceClient: modulev1connect.NewModuleServiceClient(httpClient, address, options),
Expand Down

0 comments on commit 2cc670a

Please sign in to comment.