From 744cecf61d16f2717c02d4f7a478c76507e5a618 Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Sun, 14 Nov 2021 15:54:18 +0100 Subject: [PATCH] made permissive default to true --- options/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options/options.go b/options/options.go index ca64575..af1e79c 100644 --- a/options/options.go +++ b/options/options.go @@ -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 } }