summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/app.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go
index d886b88..4a8a375 100644
--- a/modules/caddyhttp/app.go
+++ b/modules/caddyhttp/app.go
@@ -357,12 +357,10 @@ func (app *App) Start() error {
return fmt.Errorf("getting HTTP/3 QUIC listener: %v", err)
}
h3srv := &http3.Server{
- Server: &http.Server{
- Addr: hostport,
- Handler: srv,
- TLSConfig: tlsCfg,
- ErrorLog: serverLogger,
- },
+ Addr: hostport,
+ Handler: srv,
+ TLSConfig: tlsCfg,
+ MaxHeaderBytes: srv.MaxHeaderBytes,
}
//nolint:errcheck
go h3srv.ServeListener(h3ln)