mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 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) {
|
siyuan.Handle("GET", "/", func(c *gin.Context) {
|
||||||
userAgentHeader := c.GetHeader("User-Agent")
|
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{}
|
location := url.URL{}
|
||||||
queryParams := c.Request.URL.Query()
|
queryParams := c.Request.URL.Query()
|
||||||
queryParams.Set("r", gulu.Rand.String(7))
|
queryParams.Set("r", gulu.Rand.String(7))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue