diff options
| author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-20 20:13:37 +0200 | 
|---|---|---|
| committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-20 20:13:37 +0200 | 
| commit | 398ae343e6a33fb81f82380b17081b8f9bae328a (patch) | |
| tree | 3d13af74b4d1542ec2ba06c2fcf9b73687a71274 /pkg | |
| parent | b6629e85bc4d77f43d2ddfe70505a25714018e65 (diff) | |
| download | lens-398ae343e6a33fb81f82380b17081b8f9bae328a.tar.gz lens-398ae343e6a33fb81f82380b17081b8f9bae328a.tar.bz2 lens-398ae343e6a33fb81f82380b17081b8f9bae328a.zip | |
feat: Fix video loading its full width
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/ext/fileserver.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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 | 
