From a9635167830549b1958bd4f1c1accad45e8b8563 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 6 Jan 2022 00:12:29 -0600 Subject: [PATCH] switch from legacy FS functions to new constructor --- app/proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/proxy/proxy.go b/app/proxy/proxy.go index 3ca8ff7..eea5e8d 100644 --- a/app/proxy/proxy.go +++ b/app/proxy/proxy.go @@ -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 {