Skip to content

Commit 46e9d38

Browse files
authored
ToHttpURL for curl printer (#550)
1 parent deef668 commit 46e9d38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/lk/utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import (
2525

2626
"github.com/livekit/protocol/utils/interceptors"
2727

28+
lksdk "github.com/livekit/server-sdk-go/v2"
29+
2830
"github.com/livekit/livekit-cli/v2/pkg/config"
2931
"github.com/livekit/livekit-cli/v2/pkg/util"
3032
)
@@ -106,7 +108,7 @@ func withDefaultClientOpts(c *config.ProjectConfig) []twirp.ClientOption {
106108
ics []twirp.Interceptor
107109
)
108110
if printCurl {
109-
ics = append(ics, interceptors.NewCurlPrinter(os.Stdout, c.URL))
111+
ics = append(ics, interceptors.NewCurlPrinter(os.Stdout, lksdk.ToHttpURL(c.URL)))
110112
}
111113
if len(ics) != 0 {
112114
opts = append(opts, twirp.WithClientInterceptors(ics...))

0 commit comments

Comments
 (0)