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:
authorJaime Martinez <jmartinez@gitlab.com>2021-10-25 03:50:40 +0300
committerVladimir Shushlin <v.shushlin@gmail.com>2021-10-25 12:44:29 +0300
commita05ea2141704d8aeaa21e45365efb9e153e6eb93 (patch)
treea68586b36b8cae8f23270fc1bdbb74a69e8f7131 /internal/routing
parent1a1adbaf869ed651aae3671c507f726a64b1d7ca (diff)
refactor: remove domain from request
Diffstat (limited to 'internal/routing')
-rw-r--r--internal/routing/middleware.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/routing/middleware.go b/internal/routing/middleware.go
index 5f065c61..de34ec21 100644
--- a/internal/routing/middleware.go
+++ b/internal/routing/middleware.go
@@ -27,7 +27,7 @@ func NewMiddleware(handler http.Handler, s source.Source) http.Handler {
return
}
- r = request.WithHostAndDomain(r, host, d)
+ r = domain.ReqWithHostAndDomain(r, host, d)
handler.ServeHTTP(w, r)
})