mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 数据库查询结果导出&其他小问题修复
This commit is contained in:
@@ -14,7 +14,6 @@ import (
|
||||
"mayfly-go/pkg/middleware"
|
||||
"mayfly-go/static"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@@ -22,7 +21,6 @@ import (
|
||||
func WrapStaticHandler(h http.Handler) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
c.Writer.Header().Set("Cache-Control", `public, max-age=31536000`)
|
||||
c.Request.URL.Path = strings.Split(c.Request.RequestURI, "/mayfly")[1]
|
||||
h.ServeHTTP(c.Writer, c.Request)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user