mirror of
https://github.com/labstack/echo.git
synced 2025-11-27 22:38:25 +02:00
Context#StaticContent signature changed
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -97,8 +97,9 @@ func StaticFromConfig(config StaticConfig) echo.MiddlewareFunc {
|
||||
}
|
||||
return next.Handle(c)
|
||||
}
|
||||
fi, _ = f.Stat() // Index file stat
|
||||
}
|
||||
return c.ServeContent(f)
|
||||
return c.ServeContent(f, fi.Name(), fi.ModTime())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user