Skip to content

Commit

Permalink
add http/1.1 ALPN
Browse files Browse the repository at this point in the history
  • Loading branch information
Equim-chan committed Jun 14, 2019
1 parent 1437f9b commit a2e633b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion h2s.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func NewServer(c *Config) (*Server, error) {

tlsConfig := (*tls.Config)(nil)
if t := v.TLSConfig; t != nil {
tlsConfig = new(tls.Config)
tlsConfig = &tls.Config{
NextProtos: []string{"http/1.1"},
}

if t.ServerName != "" {
tlsConfig.ServerName = t.ServerName
Expand Down

0 comments on commit a2e633b

Please sign in to comment.