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:
Diffstat (limited to 'internal/request/request.go')
-rw-r--r--internal/request/request.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/request/request.go b/internal/request/request.go
index 730eb527..74982f33 100644
--- a/internal/request/request.go
+++ b/internal/request/request.go
@@ -28,7 +28,7 @@ func IsHTTPS(r *http.Request) bool {
}
// WithHostAndDomain saves host name and domain in the request's context
-func WithHostAndDomain(r *http.Request, host string, domain *domain.D) *http.Request {
+func WithHostAndDomain(r *http.Request, host string, domain *domain.Domain) *http.Request {
ctx := r.Context()
ctx = context.WithValue(ctx, ctxHostKey, host)
ctx = context.WithValue(ctx, ctxDomainKey, domain)
@@ -42,6 +42,6 @@ func GetHost(r *http.Request) string {
}
// GetDomain extracts the domain from request's context
-func GetDomain(r *http.Request) *domain.D {
- return r.Context().Value(ctxDomainKey).(*domain.D)
+func GetDomain(r *http.Request) *domain.Domain {
+ return r.Context().Value(ctxDomainKey).(*domain.Domain)
}