This commit is contained in:
1 parent
40ce4e81a8
commit
de14a0e68d
2 files changed
+8
-8
No files matched your search
@@ -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