Use static key

This commit is contained in:
Roland Shoemaker 2015-09-30 14:51:15 -07:00
parent dc05141c04
commit 2ded12838a
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ func (va *ValidationAuthorityImpl) validateSimpleHTTP(identifier core.AcmeIdenti
return challenge, err
}
contentTypes, ok := httpResponse.Header[http.CanonicalHeaderKey("content-type")]
contentTypes, ok := httpResponse.Header["Content-Type"]
if ok && len(contentTypes) != 1 {
challenge.Status = core.StatusInvalid
challenge.Error = &core.ProblemDetails{