🎨 Add index serving log

This commit is contained in:
Daniel 2023-11-20 17:50:39 +08:00
parent 7ab6d6c3f8
commit a54dd12533
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -208,8 +208,9 @@ func serveAppearance(ginServer *gin.Engine) {
siyuan.Handle("GET", "/", func(c *gin.Context) {
userAgentHeader := c.GetHeader("User-Agent")
logging.LogInfof("serving [/] for user-agent [%s]", userAgentHeader)
/* Carry query parameters when redirecting */
// Carry query parameters when redirecting
location := url.URL{}
queryParams := c.Request.URL.Query()
queryParams.Set("r", gulu.Rand.String(7))