From b601d4bcbf225f614b575f3a0489c9c205b38852 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Wed, 7 Jun 2023 20:16:09 +0200 Subject: [PATCH] Update preemtiveAuthorizer documentation --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index aed8e18..e571a15 100644 --- a/auth.go +++ b/auth.go @@ -399,7 +399,7 @@ func (b *preemptiveAuthorizer) NewAuthenticator(body io.Reader) (Authenticator, return b.auth.Clone(), body } -// AddAuthenticator A preemptive authorizer may only have a single authentication method +// AddAuthenticator Will PANIC because it may only have a single authentication method func (b *preemptiveAuthorizer) AddAuthenticator(key string, fn AuthFactory) { panic("You're funny! A preemptive authorizer may only have a single authentication method") }