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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-11 03:22:06 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-11 03:23:04 +0300
commitf53f45492f595551888a6d510aadfebab0ff91e4 (patch)
tree53117e2d18a871a3404d60fad54c1ce7ad8142c8 /server.go
parentca49f3b9de0e9f8f186b9c47147eea883b68e7ac (diff)
refactor: don't wrap handler with context ClearHandler
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.go b/server.go
index 07013e22..37939b9a 100644
--- a/server.go
+++ b/server.go
@@ -8,7 +8,6 @@ import (
"os"
"time"
- "github.com/gorilla/context"
proxyproto "github.com/pires/go-proxyproto"
"gitlab.com/gitlab-org/gitlab-pages/internal/netutil"
@@ -46,7 +45,7 @@ func (ln *keepAliveListener) Accept() (net.Conn, error) {
func (a *theApp) listenAndServe(config listenerConfig) error {
// create server
- server := &http.Server{Handler: context.ClearHandler(config.handler), TLSConfig: config.tlsConfig}
+ server := &http.Server{Handler: config.handler, TLSConfig: config.tlsConfig}
// ensure http2 is enabled even if TLSConfig is not null
// See https://github.com/golang/go/blob/97cee43c93cfccded197cd281f0a5885cdb605b4/src/net/http/server.go#L2947-L2954