diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-02-19 17:36:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 15:36:36 -0700 |
commit | 186fdba916a128fc2a837852d2ab04ac2efba413 (patch) | |
tree | c08c2a684b31ba32fcbb4ff1f81fdbcfaab1e2bb /modules/caddyhttp/app.go | |
parent | 7778912d4eb51b5ae2c7af584c42fc85e1e09f2c (diff) |
caddyhttp: Move HTTP redirect listener to an optional module (#4585)
Diffstat (limited to 'modules/caddyhttp/app.go')
-rw-r--r-- | modules/caddyhttp/app.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index 67f9d1d..64cc540 100644 --- a/modules/caddyhttp/app.go +++ b/modules/caddyhttp/app.go @@ -343,11 +343,6 @@ func (app *App) Start() error { // enable TLS if there is a policy and if this is not the HTTP port useTLS := len(srv.TLSConnPolicies) > 0 && int(listenAddr.StartPort+portOffset) != app.httpPort() if useTLS { - // create HTTP redirect wrapper, which detects if - // the request had HTTP bytes on the HTTPS port, and - // triggers a redirect if so. - ln = &httpRedirectListener{Listener: ln} - // create TLS listener tlsCfg := srv.TLSConnPolicies.TLSConfig(app.ctx) ln = tls.NewListener(ln, tlsCfg) |