Minor cleanup and fixes

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-01 21:48:41 +08:00
parent 5ccde3f34a
commit 4664847f10
16 changed files with 38 additions and 8 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ import (
"honoka-chan/internal/utils"
"honoka-chan/pkg/db"
"log"
"net/http"
"github.com/gin-gonic/gin"
"xorm.io/xorm"
@@ -75,6 +76,7 @@ func (ss *Session) Respond(resp any) {
return
}
ss.Ctx.Header("Content-Type", "application/json")
ss.Ctx.Header("X-Message-Sign", utils.GenXMS(data))
ss.Ctx.String(200, string(data))
ss.Ctx.String(http.StatusOK, string(data))
}