lib/promauth: typo fix in the error message after d5a599badc: obtaine -> obtain

This commit is contained in:
Aliaksandr Valialkin 2023-10-25 23:37:52 +02:00
parent d5a599badc
commit 612dcf231a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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)