correctly fix go1.5 dependency

This commit is contained in:
xenolf 2015-11-12 22:49:02 +01:00
parent 87e9f08cfa
commit 94caca08d8

View file

@ -33,7 +33,11 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error {
return err return err
} }
keyThumb := base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(thumbBytes) keyThumb := base64.URLEncoding.EncodeToString(thumbBytes)
index := strings.Index(keyThumb, "=")
if index != -1 {
keyThumb = keyThumb[:index]
}
keyAuth := chlng.Token + "." + keyThumb keyAuth := chlng.Token + "." + keyThumb
go s.startHTTPServer(domain, chlng.Token, keyAuth) go s.startHTTPServer(domain, chlng.Token, keyAuth)