diff options
author | Dmitry Patsura <[email protected]> | 2019-06-13 20:03:46 +0300 |
---|---|---|
committer | Dmitry Patsura <[email protected]> | 2019-06-13 20:03:46 +0300 |
commit | e8ea2418e55869be8fb908f612e4a8dd122bc5e9 (patch) | |
tree | 1a4b9cd31ea0c83a4bdadc7e17e6461b0884cd9a | |
parent | f427a13ac091ce5ef814c58870782105adf48c12 (diff) |
Feature: Use special instance of http.Server for FastCGI
-rw-r--r-- | service/http/service.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/service.go b/service/http/service.go index 8db13c15..967aa63b 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -101,7 +101,7 @@ func (s *Service) Serve() error { } if s.cfg.EnableFCGI() { - s.fcgi = &http.Server{Addr: s.cfg.Address, Handler: s} + s.fcgi = &http.Server{Handler: s} } s.mu.Unlock() @@ -165,7 +165,7 @@ func (s *Service) ListenAndServeFCGI() error { return err } - err = fcgi.Serve(l, s.http.Handler) + err = fcgi.Serve(l, s.fcgi.Handler) if err != nil { return err } |