Fix support for / to default to serving up index.html

This commit is contained in:
James Mills 2023-08-20 00:46:13 +10:00
parent 7f777dda60
commit 9c30c9d279
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -60,7 +60,7 @@ func (c *Client) Open(user, path string) (fs.File, error) {
log.Printf("repo: %s", repo)
// if path is empty they want to have the index.html
if path == "" {
if path == "" || path == "/" {
path = "index.html"
}