Replace code which needs go1.5

This commit is contained in:
xenolf 2015-11-12 22:33:00 +01:00
parent 83dc16fa5e
commit 87e9f08cfa

View file

@ -33,7 +33,8 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error {
return err
}
keyAuth := chlng.Token + "." + base64.RawURLEncoding.EncodeToString(thumbBytes)
keyThumb := base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(thumbBytes)
keyAuth := chlng.Token + "." + keyThumb
go s.startHTTPServer(domain, chlng.Token, keyAuth)
var listener net.Listener