gateway: reject bad path segments in URL (#4202)

This commit is contained in:
Krishna Srinivas 2017-04-28 17:17:18 -07:00 committed by Harshavardhana
parent 0d32b22359
commit 01f04c717e

View File

@ -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.