feat: Move the path modifications around
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -38,6 +38,14 @@ func handleSubdomain(domain, cname, path, giteaUrl, defaultCsp string, giteaClie
|
||||
path = path[1:]
|
||||
}
|
||||
|
||||
// Provide a default file.
|
||||
switch {
|
||||
case path == "":
|
||||
path = "/index.html"
|
||||
case path[len(path)-1] == '/':
|
||||
path = path + "index.html"
|
||||
}
|
||||
|
||||
repo, path, err := repo.RepoFromPath(
|
||||
username,
|
||||
domain,
|
||||
|
||||
Reference in New Issue
Block a user