mirror of
https://github.com/distribution/distribution.git
synced 2025-09-15 06:39:25 +00:00
chore: fix some typos in comments
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
@@ -127,7 +127,7 @@ func (ac authChallenge) challengeParams(r *http.Request) string {
|
||||
return str
|
||||
}
|
||||
|
||||
// SetChallenge sets the WWW-Authenticate value for the response.
|
||||
// SetHeaders sets the WWW-Authenticate value for the response.
|
||||
func (ac authChallenge) SetHeaders(r *http.Request, w http.ResponseWriter) {
|
||||
w.Header().Add("WWW-Authenticate", ac.challengeParams(r))
|
||||
}
|
||||
|
Reference in New Issue
Block a user