From a66cbdc328b936d031ae47fc7a013563a74e63a6 Mon Sep 17 00:00:00 2001 From: Claude-Zq <1574089391@qq.com> Date: Wed, 13 Jul 2022 19:13:04 +0800 Subject: [PATCH] Fixed syntax errors --- auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.go b/auth.go index 2503c515..349101be 100644 --- a/auth.go +++ b/auth.go @@ -39,7 +39,7 @@ func (a authPairs) searchCredential(authValue string) (string, bool) { } // BasicAuthForRealm returns a Basic HTTP Authorization middleware. It takes as arguments a map[string]string where -// the key is the user name and the value is the password, as well as the name of the Realm. +// the key is the username and the value is the password, as well as the name of the Realm. // If the realm is empty, "Authorization Required" will be used by default. // (see http://tools.ietf.org/html/rfc2617#section-1.2) func BasicAuthForRealm(accounts Accounts, realm string) HandlerFunc { @@ -65,7 +65,7 @@ func BasicAuthForRealm(accounts Accounts, realm string) HandlerFunc { } // BasicAuth returns a Basic HTTP Authorization middleware. It takes as argument a map[string]string where -// the key is the user name and the value is the password. +// the key is the username and the value is the password. func BasicAuth(accounts Accounts) HandlerFunc { return BasicAuthForRealm(accounts, "") }