Fix support for / to default to serving up index.html
This commit is contained in:
parent
7f777dda60
commit
9c30c9d279
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user