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:
authorKassio Borges <kassioborgesm@gmail.com>2024-01-22 19:05:06 +0300
committerKassio Borges <kassioborgesm@gmail.com>2024-01-22 19:05:06 +0300
commit0f5850946704c461f4415c5d1cfc5ce9c89b1644 (patch)
tree6e779bb604a017c51189b57b15916c8d08f0d185
parent92ac92eb9b87fed87760fc4862dbbed112e8ee60 (diff)
Try to fix CI
-rw-r--r--internal/source/gitlab/gitlab.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/source/gitlab/gitlab.go b/internal/source/gitlab/gitlab.go
index fe175aaf..40b127d2 100644
--- a/internal/source/gitlab/gitlab.go
+++ b/internal/source/gitlab/gitlab.go
@@ -73,13 +73,13 @@ func (g *Gitlab) Resolve(r *http.Request) (*serving.Request, error) {
}
urlPath := path.Clean(r.URL.Path)
- lowerUrlPath := strings.ToLower(urlPath)
+ lowerURLPath := strings.ToLower(urlPath)
size := len(response.Domain.LookupPaths)
for _, lookup := range response.Domain.LookupPaths {
lookupPrefix := strings.ToLower(lookup.Prefix)
- isSubPath := strings.HasPrefix(lowerUrlPath, lookupPrefix)
- isRootPath := lowerUrlPath == path.Clean(lookupPrefix)
+ isSubPath := strings.HasPrefix(lowerURLPath, lookupPrefix)
+ isRootPath := lowerURLPath == path.Clean(lookupPrefix)
if isSubPath || isRootPath {
subPath := ""