cmd/sgblog/http.go | 4 ++-- common.go | 2 +- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index 0cf03d85f432c5c4b4a49e8c47731e0947f7f311fc6e69c97d2ac493d2dcbca0..67b41d485487e163cc1fdf4162fe349d6e2ba052b09f615168fd8d5213eba385 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -19,7 +19,7 @@ import ( "bytes" "crypto/sha1" _ "embed" - "encoding/hex" + "encoding/base64" "encoding/xml" "errors" "fmt" @@ -98,7 +98,7 @@ return `` + text + `` } func etagString(etag hash.Hash) string { - return `"` + hex.EncodeToString(etag.Sum(nil)) + `"` + return `"` + base64.RawURLEncoding.EncodeToString(etag.Sum(nil)) + `"` } func urlParse(what string) *url.URL { diff --git a/common.go b/common.go index ce7a62f666d99e99ff8d26e9bcc9b8776ed6926d5230813751f6eebd4ba2a940..85beede4404304df60eb8feffb96dc7e4210e372b7bad97fa75c02f6f7c53956 100644 --- a/common.go +++ b/common.go @@ -30,7 +30,7 @@ "go.cypherpunks.ru/recfile" ) const ( - Version = "0.33.0" + Version = "0.34.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )