mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix file not exist panic in StaticFilter()
This commit is contained in:
parent
55c522d3b7
commit
2fb9674171
@ -64,6 +64,9 @@ func StaticFilter(ctx *context.Context) {
|
||||
if !util.FileExist(path) {
|
||||
path = "web/build/index.html"
|
||||
}
|
||||
if !util.FileExist(path) {
|
||||
return
|
||||
}
|
||||
|
||||
if oldStaticBaseUrl == newStaticBaseUrl {
|
||||
makeGzipResponse(ctx.ResponseWriter, ctx.Request, path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user