diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-10-25 03:50:40 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2021-10-25 12:44:29 +0300 |
commit | a05ea2141704d8aeaa21e45365efb9e153e6eb93 (patch) | |
tree | a68586b36b8cae8f23270fc1bdbb74a69e8f7131 /internal/routing | |
parent | 1a1adbaf869ed651aae3671c507f726a64b1d7ca (diff) |
refactor: remove domain from request
Diffstat (limited to 'internal/routing')
-rw-r--r-- | internal/routing/middleware.go | 2 |
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) }) |