diff --git a/cmd/gateway-main.go b/cmd/gateway-main.go index f956b78fb..a439b478e 100644 --- a/cmd/gateway-main.go +++ b/cmd/gateway-main.go @@ -193,6 +193,8 @@ func gatewayMain(ctx *cli.Context) { registerGatewayAPIRouter(router, newObject) var handlerFns = []HandlerFunc{ + // Validate all the incoming paths. + setPathValidityHandler, // Limits all requests size to a maximum fixed limit setRequestSizeLimitHandler, // Adds 'crossdomain.xml' policy handler to serve legacy flash clients.