From 612dcf231aafe289a55b0c5a8f27aa81a0b473d8 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 25 Oct 2023 23:37:52 +0200 Subject: [PATCH] lib/promauth: typo fix in the error message after d5a599badce3ff84c3ef236e1e8c3fb38514f272: obtaine -> obtain --- lib/promauth/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promauth/config.go b/lib/promauth/config.go index fad3ca912..fb4e6f13d 100644 --- a/lib/promauth/config.go +++ b/lib/promauth/config.go @@ -352,7 +352,7 @@ func (ac *Config) SetFasthttpHeaders(req *fasthttp.Request, setAuthHeader bool) if setAuthHeader { ah, err := ac.GetAuthHeader() if err != nil { - return fmt.Errorf("failed to obtaine Authorization request header: %w", err) + return fmt.Errorf("failed to obtain Authorization request header: %w", err) } if ah != "" { reqHeaders.Set("Authorization", ah)