router: PathPrefix router was wrong. (#3172)

This commit is contained in:
Harshavardhana
2016-11-04 12:13:22 -07:00
committed by GitHub
parent d9bab6b3bd
commit d192044915
5 changed files with 7 additions and 8 deletions

View File

@@ -166,7 +166,7 @@ func (l *ListenerMux) Close() error {
// ServerMux - the main mux server
type ServerMux struct {
http.Server
*http.Server
listeners []*ListenerMux
WaitGroup *sync.WaitGroup
GracefulTimeout time.Duration
@@ -178,7 +178,7 @@ type ServerMux struct {
// NewServerMux constructor to create a ServerMux
func NewServerMux(addr string, handler http.Handler) *ServerMux {
m := &ServerMux{
Server: http.Server{
Server: &http.Server{
Addr: addr,
// Do not add any timeouts Golang net.Conn
// closes connections right after 10mins even