From 4a8da05df37becfc074a35eda0a4e882c4b238ac Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 3 Dec 2020 17:24:27 +0300 Subject: [PATCH] Correct Atom's Content-Type --- README.texi | 2 +- cmd/sgblog/http.go | 2 +- common.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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" ) -- 2.44.0