Merge pull request #6463 from xiang90/fix_http

embed: fix go 1.7 http issue
release-3.1
Xiang Li 2016-09-18 08:44:04 -05:00 committed by GitHub
commit 33dbf5c6bd
1 changed files with 3 additions and 0 deletions

View File

@ -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
}