🎨 Add index serving log
This commit is contained in:
parent
7ab6d6c3f8
commit
a54dd12533
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue