diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-11 02:21:21 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-03-13 13:42:29 +0300 |
commit | de395b2806024af3846c93b3f10c9dc9416cd83d (patch) | |
tree | 56a4f2154dbda3314548f2101bbc47c1984bd56b /app.go | |
parent | fbcbce1277c57783568c2a2d828c0022d675932c (diff) |
Fix and clarify redirect HTTP logic
redirect-http seemed to suggest the Pages daemon would redirect from HTTPS to
HTTP, but it seems that the opposite was implied.
Fixes issue manifested by https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1348
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ func (a *theApp) serveContent(ww http.ResponseWriter, r *http.Request, https boo defer metrics.SessionsActive.Dec() // Add auto redirect - if https && !a.RedirectHTTP { + if !https && a.RedirectHTTP { u := *r.URL u.Scheme = "https" u.Host = r.Host |