Permalink
Browse files

embed: fix go 1.7 http issue

go 1.7 introduces HTTP2 compability issue. Now we
need to explicitly enable HTTP2 when TLS is set.
  • Loading branch information...
xiang90 committed Sep 18, 2016
1 parent ac20775 commit 7a48ca4ceaa10451b48594104e14fe36781c1a01
Showing with 3 additions and 0 deletions.
  1. +3 −0 pkg/transport/listener.go
@@ -208,6 +208,9 @@ func (info TLSInfo) ServerConfig() (*tls.Config, error) {
cfg.ClientCAs = cp
}
// "h2" NextProtos is necessary for enabling HTTP2 for go's HTTP server
cfg.NextProtos = []string{"h2"}
return cfg, nil
}

0 comments on commit 7a48ca4

Please sign in to comment.