Skip to content

Commit c982b17

Browse files
committed
tweak http max header size
1 parent ef36142 commit c982b17

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cmd/web/server.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ func (app *App) InitServer() {
9191
}
9292

9393
app.server = &http.Server{
94-
Addr: app.addr,
95-
Handler: app.Routes(),
96-
WriteTimeout: 30 * time.Second,
97-
ReadTimeout: 15 * time.Second,
98-
IdleTimeout: 60 * time.Second,
99-
TLSConfig: tlsConfig,
94+
Addr: app.addr,
95+
Handler: app.Routes(),
96+
WriteTimeout: 30 * time.Second,
97+
ReadTimeout: 15 * time.Second,
98+
IdleTimeout: 60 * time.Second,
99+
TLSConfig: tlsConfig,
100+
MaxHeaderBytes: 524288,
100101
}
101102
}
102103

0 commit comments

Comments
 (0)