Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
fileserver: Fix browse name_dir_first sorting (#4218)
This commit fixes the `sortByNameDirFirst` variable inside fileserver to match what browse's default template has. Co-authored-by: Francis Lavoie <lavofr@gmail.com>
diamondburned committed
Jul 6, 2021 at 23:54 UTC
9e16e80f3c9ae663e3ecf596a578a852172e38fb
1 file changed
+1
-1
modules/caddyhttp/fileserver/browsetplcontext.go
+1
-1
@@ -264,7 +264,7 @@ func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before(l.Items[j
264
265
const (
266
sortByName = "name"
267
- sortByNameDirFirst = "name_dir_first"
267
+ sortByNameDirFirst = "namedirfirst"
268
sortBySize = "size"
269
sortByTime = "time"
270
)