update for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
594923b6bf
commit
2a4db2e332
2
http.go
2
http.go
@ -468,7 +468,7 @@ func (h *httpTransportListener) Accept(fn func(transport.Socket)) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// insecure connection use h2c
|
// insecure connection use h2c
|
||||||
if !(h.ht.opts.Secure || h.ht.opts.TLSConfig != nil) {
|
if h.ht.opts.TLSConfig == nil {
|
||||||
srv.Handler = h2c.NewHandler(mux, &http2.Server{})
|
srv.Handler = h2c.NewHandler(mux, &http2.Server{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user