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
path: root/app.go
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-10 00:06:43 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-10 00:23:53 +0300
commit3425634584820837fd88d14b944bbdc391823936 (patch)
treef199d9e79a8d2208c28871ea628ae2668d9d4fe3 /app.go
parentb30197c907c86e38740df5640642f2a5ea739c69 (diff)
Allow auth proxying only for configured domains and everything under pages domain
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 047e7ed9..3ffe9ad9 100644
--- a/app.go
+++ b/app.go
@@ -164,7 +164,7 @@ func (a *theApp) serveContent(ww http.ResponseWriter, r *http.Request, https boo
host, domain := a.getHostAndDomain(r)
- if a.Auth.TryAuthenticate(&w, r) {
+ if a.Auth.TryAuthenticate(&w, r, a.dm, &a.lock) {
return
}