fix setting of http.Handler in the example server

This commit is contained in:
Marten Seemann 2020-11-23 11:07:38 +07:00
parent ed1956f5a9
commit eb53fdfdb3

View file

@ -230,7 +230,7 @@ func main() {
var err error
if *tcp {
certFile, keyFile := testdata.GetCertificatePaths()
err = http3.ListenAndServe(bCap, certFile, keyFile, nil)
err = http3.ListenAndServe(bCap, certFile, keyFile, handler)
} else {
server := http3.Server{
Server: &http.Server{Handler: handler, Addr: bCap},