mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
Limit POST form fields and file size + Generic Request Size limiter (#2317)
* Use less memory when receiving a file via multipart * Add generic http request maximum size limiter to secure against malicious clients
This commit is contained in:
committed by
Harshavardhana
parent
7850d17f48
commit
dcc3463e48
@@ -79,6 +79,8 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) http.Handler {
|
||||
var handlerFns = []HandlerFunc{
|
||||
// Limits the number of concurrent http requests.
|
||||
setRateLimitHandler,
|
||||
// Limits all requests size to a maximum fixed limit
|
||||
setRequestSizeLimitHandler,
|
||||
// Adds 'crossdomain.xml' policy handler to serve legacy flash clients.
|
||||
setCrossDomainPolicy,
|
||||
// Redirect some pre-defined browser request paths to a static location prefix.
|
||||
|
||||
Reference in New Issue
Block a user