diff options
author | Kassio Borges <kassioborgesm@gmail.com> | 2024-01-22 19:05:06 +0300 |
---|---|---|
committer | Kassio Borges <kassioborgesm@gmail.com> | 2024-01-22 19:05:06 +0300 |
commit | 0f5850946704c461f4415c5d1cfc5ce9c89b1644 (patch) | |
tree | 6e779bb604a017c51189b57b15916c8d08f0d185 | |
parent | 92ac92eb9b87fed87760fc4862dbbed112e8ee60 (diff) |
Try to fix CI
-rw-r--r-- | internal/source/gitlab/gitlab.go | 6 |
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 := "" |