mirror of
https://github.com/umputun/reproxy.git
synced 2024-10-26 10:10:12 +03:00
switch from legacy FS functions to new constructor
This commit is contained in:
parent
1315f04ddf
commit
a963516783
@ -361,9 +361,9 @@ func (h *Http) fileServer(assetsWebRoot, assetsLocation string, spa bool, notFou
|
|||||||
notFoundReader = bytes.NewReader(notFound)
|
notFoundReader = bytes.NewReader(notFound)
|
||||||
}
|
}
|
||||||
if spa {
|
if spa {
|
||||||
return R.FileServerSPA(assetsWebRoot, assetsLocation, notFoundReader)
|
return R.NewFileServer(assetsWebRoot, assetsLocation, R.FsOptCustom404(notFoundReader), R.FsOptSPA)
|
||||||
}
|
}
|
||||||
return R.FileServer(assetsWebRoot, assetsLocation, notFoundReader)
|
return R.NewFileServer(assetsWebRoot, assetsLocation, R.FsOptCustom404(notFoundReader))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Http) isAssetRequest(r *http.Request) bool {
|
func (h *Http) isAssetRequest(r *http.Request) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user