File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ if exists {
157
157
* `` .UpdateOnInterval(interval time.Duration) *time.Ticker `` Keep updating regularly on a duration
158
158
* `` .ServeFile(c echo.Context, filename string) error ``
159
159
* `` .ServeMF(c echo.Context, memFile *MemFile) error ``
160
- * `` .ServeMemFile(route string, filename string) *echo.Route `` shorthand handler
160
+ * `` .ServeMemFile(route string, filename string) `` shorthand handler
161
161
* `` .Serve(res http.ResponseWriter, req *http.Request, filename string) error `` for other middleware etc.
162
162
* `` .CacheControl `` the Cache-Control header is `` "private, must-revalidate" `` by default, but you can change it
163
163
* `` .DevMode ``
Original file line number Diff line number Diff line change @@ -245,12 +245,13 @@ func ServablePath(dir string, loc string) string {
245
245
return loc
246
246
}
247
247
248
- func (mfi * MemFileInstance ) ServeMemFile (route string , filename string ) * echo. Route {
248
+ func (mfi * MemFileInstance ) ServeMemFile (route string , filename string ) {
249
249
loc := filename
250
250
if loc [:1 ] != slash {
251
251
loc = slash + loc
252
252
}
253
- return mfi .Server .GET (route , func (c ctx ) error {
253
+
254
+ mfi .Server .GET (route , func (c ctx ) error {
254
255
return mfi .Serve (c .Response ().Writer , c .Request (), loc )
255
256
})
256
257
}
You can’t perform that action at this time.
0 commit comments