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:
Diffstat (limited to 'app.go')
-rw-r--r--app.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.go b/app.go
index fa8dc04f..8cfeef00 100644
--- a/app.go
+++ b/app.go
@@ -83,7 +83,7 @@ func (a *theApp) healthCheck(w http.ResponseWriter, r *http.Request, https bool)
func (a *theApp) redirectToHTTPS(w http.ResponseWriter, r *http.Request, statusCode int) {
u := *r.URL
- u.Scheme = "https"
+ u.Scheme = request.SchemeHTTPS
u.Host = r.Host
u.User = nil
@@ -400,7 +400,7 @@ func (a *theApp) listenHTTPFD(wg *sync.WaitGroup, fd uintptr, httpHandler http.H
defer wg.Done()
err := listenAndServe(fd, httpHandler, a.HTTP2, nil, limiter)
if err != nil {
- capturingFatal(err, errortracking.WithField("listener", "http"))
+ capturingFatal(err, errortracking.WithField("listener", request.SchemeHTTP))
}
}()
}
@@ -411,7 +411,7 @@ func (a *theApp) listenHTTPSFD(wg *sync.WaitGroup, fd uintptr, httpHandler http.
defer wg.Done()
err := listenAndServeTLS(fd, a.RootCertificate, a.RootKey, httpHandler, a.ServeTLS, a.InsecureCiphers, a.TLSMinVersion, a.TLSMaxVersion, a.HTTP2, limiter)
if err != nil {
- capturingFatal(err, errortracking.WithField("listener", "https"))
+ capturingFatal(err, errortracking.WithField("listener", request.SchemeHTTPS))
}
}()
}