made permissive default to true
This commit is contained in:
parent
0a5b59aa0b
commit
744cecf61d
1 changed files with 2 additions and 2 deletions
|
|
@ -265,8 +265,8 @@ func WithErrorHandler(opt ErrorHandler) Option {
|
|||
}
|
||||
|
||||
// WithPermissive allows incoming requests to pass even if the client does not provide a token.
|
||||
func WithPermissive(opt bool) Option {
|
||||
func WithPermissive() Option {
|
||||
return func(opts *Options) {
|
||||
opts.Permissive = opt
|
||||
opts.Permissive = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue