mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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.
This commit is contained in:
parent
ac2077559d
commit
7a48ca4cea
@ -208,6 +208,9 @@ func (info TLSInfo) ServerConfig() (*tls.Config, error) {
|
|||||||
cfg.ClientCAs = cp
|
cfg.ClientCAs = cp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// "h2" NextProtos is necessary for enabling HTTP2 for go's HTTP server
|
||||||
|
cfg.NextProtos = []string{"h2"}
|
||||||
|
|
||||||
return cfg, nil
|
return cfg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user