]> Sergey Matveev's repositories - sgblog.git/commitdiff
Correct Atom's Content-Type v0.14.0
authorSergey Matveev <stargrave@stargrave.org>
Thu, 3 Dec 2020 14:24:27 +0000 (17:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Dec 2020 14:24:27 +0000 (17:24 +0300)
README.texi
cmd/sgblog/http.go
common.go

index 51c4accbca5529f073847747b6ebc524c05396eb..74480adf2b13b79de2e4a285f63ab67dea1b9748 100644 (file)
@@ -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
index aae2f93ac30196668ef9405df236ac796492cf2d..1cf119493fc5c1439ea76dbd20f967fcaaac3bc3 100644 (file)
@@ -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")
index 108bf97585afd3c37132d18d375b25052935c42f..255aa31226ed4bd93fcac879fd8a75c4db7cd797 100644 (file)
--- 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"
 )