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/acme/acme.go')
-rw-r--r--internal/acme/acme.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/acme/acme.go b/internal/acme/acme.go
index 89881f34..a6be01de 100644
--- a/internal/acme/acme.go
+++ b/internal/acme/acme.go
@@ -18,7 +18,7 @@ type Middleware struct {
// Domain interface represent D from domain package
type Domain interface {
- HasAcmeChallenge(string) bool
+ HasAcmeChallenge(*http.Request, string) bool
}
// ServeAcmeChallenges identifies if request is acme-challenge and redirects to GitLab in that case
@@ -31,7 +31,7 @@ func (m *Middleware) ServeAcmeChallenges(w http.ResponseWriter, r *http.Request,
return false
}
- if domain.HasAcmeChallenge(filepath.Base(r.URL.Path)) {
+ if domain.HasAcmeChallenge(r, filepath.Base(r.URL.Path)) {
return false
}