More minor text fixes

This commit is contained in:
Matthew Holt
2016-08-30 13:37:35 -06:00
parent 72e4ba8b5b
commit 14a6e4b4ed
3 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ func NewServer(addr string, group []*SiteConfig) (*Server, error) {
if err != nil {
return nil, err
}
// Since Go 1.7 HTTP/2 is enabled only if TLSConfig.NextProtos includes the string "h2".
// As of Go 1.7, HTTP/2 is enabled only if NextProtos includes the string "h2"
if HTTP2 && s.Server.TLSConfig != nil && len(s.Server.TLSConfig.NextProtos) == 0 {
s.Server.TLSConfig.NextProtos = []string{"h2"}
}