mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
fix setting of http.Handler in the example server
This commit is contained in:
parent
ed1956f5a9
commit
eb53fdfdb3
1 changed files with 1 additions and 1 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue