From f5354dbe2f9695b15d1d807025000a44bcd56186 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 11 Feb 2022 19:05:47 +0300 Subject: [PATCH] Proper XML header --- cmd/sgblog/http.go | 3 +++ common.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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" ) -- 2.44.0