From: Sergey Matveev Date: Fri, 11 Feb 2022 16:05:47 +0000 (+0300) Subject: Proper XML header X-Git-Tag: v0.26.0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=eabb9b30dbda6dcd8c7133053c7a9b44b465241a;p=sgblog.git Proper XML header --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index 251525c..527f51e 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -509,6 +509,7 @@ func serveHTTP() { if err != nil { makeErr(err, http.StatusInternalServerError) } + out.Write([]byte(xml.Header)) out.Write(data) goto AtomFinish } else if pathInfo == "/"+AtomCommentsFeed { @@ -603,6 +604,7 @@ func serveHTTP() { if err != nil { makeErr(err, http.StatusInternalServerError) } + out.Write([]byte(xml.Header)) out.Write(data) goto AtomFinish } else if sha1DigestRe.MatchString(pathInfo[1:]) { @@ -709,6 +711,7 @@ func serveHTTP() { if err != nil { makeErr(err, http.StatusInternalServerError) } + out.Write([]byte(xml.Header)) out.Write(data) goto AtomFinish } diff --git a/common.go b/common.go index 988e9ab..03ce423 100644 --- a/common.go +++ b/common.go @@ -15,7 +15,7 @@ import ( ) const ( - Version = "0.25.0" + Version = "0.26.0" WhenFmt = "2006-01-02 15:04:05Z07:00" )