Skip to content

Commit 3f56208

Browse files
authored
chore: update php-server max_header to 16kb to match caddy (#2475)
see caddyserver/caddy#7811
1 parent edaffab commit 3f56208

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

caddy/php-server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func cmdPHPServer(fs caddycmd.Flags) (int, error) {
274274
server := &caddyhttp.Server{
275275
ReadHeaderTimeout: caddy.Duration(10 * time.Second),
276276
IdleTimeout: caddy.Duration(30 * time.Second),
277-
MaxHeaderBytes: 1024 * 10,
277+
MaxHeaderBytes: 1024 * 16, // 16 KiB to match caddy's default
278278
Routes: caddyhttp.RouteList{route},
279279
}
280280
if listen == "" {

0 commit comments

Comments
 (0)