Skip to content

Commit

Permalink
Issue #289: Announce HTTP/1.1 on TLS connections
Browse files Browse the repository at this point in the history
Fabio should announce both HTTP/2 and HTTP/1.1 as application
level protocols on TLS connections.

Fixes #289
  • Loading branch information
magiconair committed May 8, 2017
1 parent 050842d commit 98d747c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cert/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TLSConfig(src Source, strictMatch bool) (*tls.Config, error) {

store := NewStore()
x := &tls.Config{
NextProtos: []string{"h2"},
NextProtos: []string{"h2", "http/1.1"},
GetCertificate: func(clientHello *tls.ClientHelloInfo) (cert *tls.Certificate, err error) {
return getCertificate(store.certstore(), clientHello, strictMatch)
},
Expand Down

0 comments on commit 98d747c

Please sign in to comment.