update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-02-18 22:29:47 +03:00
parent 594923b6bf
commit 2a4db2e332

View File

@ -468,7 +468,7 @@ func (h *httpTransportListener) Accept(fn func(transport.Socket)) error {
}
// 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{})
}