Skip to content

Commit 567070f

Browse files
authored
docs: document limitation of WithUserAgent (#1747)
1 parent 561b601 commit 567070f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

option/option.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ func (w withScopes) Apply(o *internal.DialSettings) {
9696
copy(o.Scopes, w)
9797
}
9898

99-
// WithUserAgent returns a ClientOption that sets the User-Agent.
99+
// WithUserAgent returns a ClientOption that sets the User-Agent. This option
100+
// is incompatible with the [WithHTTPClient] option. If you wish to provide a
101+
// custom client you will need to add this header via RoundTripper middleware.
100102
func WithUserAgent(ua string) ClientOption {
101103
return withUA(ua)
102104
}

0 commit comments

Comments
 (0)