Skip to content

Commit 262ab28

Browse files
committed
improve docs for WithMiddleware
1 parent 2790a1c commit 262ab28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func WithJar(jar http.CookieJar) ConfigurationOption {
292292
// WithMiddleware returns a ConfigurationOption that adds a Middleware to the client.
293293
// The Middleware is prepended to the list of Middlewares so that the last added Middleware is the first to be executed.
294294
// Warning: Providing this option may overide the authentication performed by the SDK if the middlewares provided break the chain.
295-
// If changes are made to the authentication header and the chain is preserved, they will be overwritten. Please use WithCustomAuth for that purpose.
295+
// If changes are made to the authentication header and the chain is preserved, they will be overwritten. If you wish to overwrite authentication, use WithCustomAuth.
296296
func WithMiddleware(m Middleware) ConfigurationOption {
297297
// Prepend m to the list of middlewares
298298
return func(config *Configuration) error {

0 commit comments

Comments
 (0)