From 3b06949c7e9a1fc5b2aec7529a97320a6f398535 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 3 Jun 2021 19:39:37 +0300 Subject: - Use fcgi in the applyMiddlewares for the fcgi, not https - Add tests --- plugins/http/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/http') diff --git a/plugins/http/serve.go b/plugins/http/serve.go index bf1ccafe..6d3f2228 100644 --- a/plugins/http/serve.go +++ b/plugins/http/serve.go @@ -73,7 +73,7 @@ func (p *Plugin) serveFCGI(errCh chan error) { const op = errors.Op("serveFCGI") if len(p.mdwr) > 0 { - applyMiddlewares(p.https, p.mdwr, p.cfg.Middleware, p.log) + applyMiddlewares(p.fcgi, p.mdwr, p.cfg.Middleware, p.log) } l, err := utils.CreateListener(p.cfg.FCGIConfig.Address) -- cgit v1.2.3