From: Sergey Matveev Date: Thu, 3 Dec 2020 14:24:27 +0000 (+0300) Subject: Correct Atom's Content-Type X-Git-Tag: v0.14.0^0 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=4a8da05df37becfc074a35eda0a4e882c4b238ac Correct Atom's Content-Type --- diff --git a/README.texi b/README.texi index 51c4acc..74480ad 100644 --- a/README.texi +++ b/README.texi @@ -129,7 +129,7 @@ CA. So either disable their usage and trust that certificate: @code{GOPRIVATE=go.stargrave.org/sgblog}, or clone its source code manually and build in place: @url{git://git.stargrave.org/sgblog.git}, -@url{https://git.stargrave.org/git/sgblog.git}. +@url{https://git.stargrave.org/sgblog.git}. For enabling blog availability you have to use HTTP server with CGI interface. Example part of @url{http://www.lighttpd.net/, lighttpd}'s diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index aae2f93..1cf1194 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -843,7 +843,7 @@ func serveHTTP() { return AtomFinish: - os.Stdout.WriteString("Content-Type: text/xml; charset=UTF-8\n") + os.Stdout.WriteString("Content-Type: application/atom+xml; charset=UTF-8\n") os.Stdout.WriteString("ETag: " + etagString(etagHash) + "\n") if gzipWriter != nil { os.Stdout.WriteString("Content-Encoding: gzip\n") diff --git a/common.go b/common.go index 108bf97..255aa31 100644 --- a/common.go +++ b/common.go @@ -2,6 +2,6 @@ package sgblog const ( - Version = "0.13.0" + Version = "0.14.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )