diff --git a/publisher/publisher.go b/publisher/publisher.go index 431508853..08eb42109 100644 --- a/publisher/publisher.go +++ b/publisher/publisher.go @@ -31,11 +31,11 @@ type LogDescription struct { PublicKey string `json:"key"` } -// NewLog returns a initinalized Log struct +// NewLog returns a initialized Log struct func NewLog(uri, b64PK string) (*Log, error) { var l Log var err error - if strings.HasPrefix(uri, "/") { + if strings.HasSuffix(uri, "/") { uri = uri[0 : len(uri)-2] } l.Client = ctClient.New(uri)