mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat: v1.5.2
This commit is contained in:
1 parent
178d847836
commit
cd311b4ae6
4 files changed
+6
-6
No files matched your search
@@ -303,7 +303,7 @@ func (w *ginCustomWriter) WriteHeader(code int) {
|
||||
}
|
||||
|
||||
func fileWithCustomStatusCode(c *gin.Context, filepath string, customCode int) {
|
||||
http.ServeFile(newCustomWriter(c, customCode), c.Request, path.Clean(filepath))
|
||||
http.ServeFile(newCustomWriter(c, customCode), c.Request, filepath)
|
||||
}
|
||||
|
||||
func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
|
||||
@@ -344,7 +344,7 @@ func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
|
||||
}
|
||||
return
|
||||
}
|
||||
localFilePath := path.Join(singleton.Conf.UserTemplate, path.Clean(c.Request.URL.Path))
|
||||
localFilePath := path.Join(singleton.Conf.UserTemplate, c.Request.URL.Path)
|
||||
if checkLocalFileOrFs(c, frontendDist, localFilePath, http.StatusOK) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user