Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/domain/domain.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index c9bda506..261707cf 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -118,7 +118,8 @@ func (d *D) getProjectWithSubpath(r *http.Request) (*project, string, string) {
// If present, these projects shadow the group domain.
split := strings.SplitN(r.URL.Path, "/", 3)
if len(split) >= 2 {
- if project := d.projects[split[1]]; project != nil {
+ projectName := strings.ToLower(split[1])
+ if project := d.projects[projectName]; project != nil {
return project, split[1], strings.Join(split[2:], "/")
}
}