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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2020-02-07 16:48:41 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2020-02-07 16:48:41 +0300
commitf5ee9a72680fa76b734d2743e069d4a4b0f360bd (patch)
tree3485e6fe693fb1b78774493e3533a6d1be69bf92
parent4d5764a77935ef502e34fed33f74e69ba1cebc6b (diff)
Rename lookup variable in domain struct function
-rw-r--r--internal/domain/domain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index 6e6ffde0..06f99914 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -57,12 +57,12 @@ func (d *Domain) GetLookupPath(r *http.Request) *serving.LookupPath {
// Handler returns a serving handler for this request
func (d *Domain) Handler(w http.ResponseWriter, r *http.Request) serving.Handler {
- project, subpath := d.resolve(r)
+ lookup, subpath := d.resolve(r)
return serving.Handler{
Writer: w,
Request: r,
- LookupPath: project,
+ LookupPath: lookup,
SubPath: subpath,
Serving: disk.New(),
}