diff options
author | zeripath <art27@cantab.net> | 2021-04-09 14:17:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 21:17:57 +0800 |
commit | 9d2c251214ad49a438fff14cc6ce55477cb22414 (patch) | |
tree | acf49147021735739693842a20ae913ffb77ce03 /routers | |
parent | 99f835b9cab8da9a14688d88228057518ca1f669 (diff) | |
download | gitea-9d2c251214ad49a438fff14cc6ce55477cb22414.tar.gz gitea-9d2c251214ad49a438fff14cc6ce55477cb22414.zip |
Move FCGI req.URL.Path fix-up to the FCGI listener (#15292)
Simplify the web.go FCGI path by moving the req.URL.Path fix-up to listener
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/routes/web.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go index b2a75acd09..7081b30e54 100644 --- a/routers/routes/web.go +++ b/routers/routes/web.go @@ -168,15 +168,6 @@ func WebRoutes() *web.Route { r.Use(h) } - if (setting.Protocol == setting.FCGI || setting.Protocol == setting.FCGIUnix) && setting.AppSubURL != "" { - r.Use(func(next http.Handler) http.Handler { - return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) { - req.URL.Path = strings.TrimPrefix(req.URL.Path, setting.AppSubURL) - next.ServeHTTP(resp, req) - }) - }) - } - mailer.InitMailRender(templates.Mailer()) if setting.Service.EnableCaptcha { |