From 2a4db2e3326d2619ebec3fa98e6eedfdf97304b0 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 18 Feb 2021 22:29:47 +0300 Subject: [PATCH] update for latest micro Signed-off-by: Vasiliy Tolstov --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index ad743d5..fb2d111 100644 --- a/http.go +++ b/http.go @@ -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{}) }