mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-24 08:12:31 +02: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)
|
||||
}
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user