Address auth package comments from stevvooe

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
This commit is contained in:
Josh Hawn 2014-12-17 11:35:35 -08:00
parent 88de2e11fb
commit d30a8321d8
4 changed files with 44 additions and 23 deletions

View file

@ -114,7 +114,7 @@ func (ac *authChallenge) challengeParams() string {
// SetHeader sets the WWW-Authenticate value for the given header.
func (ac *authChallenge) SetHeader(header http.Header) {
header.Add(http.CanonicalHeaderKey("WWW-Authenticate"), ac.challengeParams())
header.Add("WWW-Authenticate", ac.challengeParams())
}
// ServeHttp handles writing the challenge response