From 398ae343e6a33fb81f82380b17081b8f9bae328a Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Thu, 20 Jul 2023 20:13:37 +0200 Subject: feat: Fix video loading its full width --- pkg/ext/fileserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/ext/fileserver.go') diff --git a/pkg/ext/fileserver.go b/pkg/ext/fileserver.go index ee4a80b..87c1ae8 100644 --- a/pkg/ext/fileserver.go +++ b/pkg/ext/fileserver.go @@ -15,11 +15,11 @@ type FileSystem interface { // This is a VERY simple file server. It does not take a lot into consideration // and it should only be used to return small predictable files, like in the // static folder. -func FileServer(rootFS FileSystem, rootPath string) fasthttp.RequestHandler { +func FileServer(rootFS FileSystem) fasthttp.RequestHandler { return func(ctx *fasthttp.RequestCtx) { path := ctx.UserValue("filepath").(string) - f, err := rootFS.Open(rootPath + path) + f, err := rootFS.Open(path) if err != nil { InternalServerError(ctx, err) return -- cgit v1.2.3