diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-09-26 15:14:51 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-09-27 12:49:36 +0300 |
commit | 3cc7bc556307adbc8fac6942240bafceb0ff5d5d (patch) | |
tree | aa959a2b56a2fcb78830740cb5b639d8ffe39637 /internal/acme/acme.go | |
parent | bf3b3983eae2cb83e82224d4f936ccee1b4322ef (diff) |
Unify how we handle custom and group domain in serving
Diffstat (limited to 'internal/acme/acme.go')
-rw-r--r-- | internal/acme/acme.go | 4 |
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 } |