handlers: Add 'crossdomain.xml' handler. (#2305)

Fixes #2301
This commit is contained in:
Harshavardhana
2016-07-27 19:53:55 -07:00
committed by GitHub
parent 6b5fce826b
commit f0067babe0
2 changed files with 52 additions and 2 deletions

View File

@@ -71,8 +71,9 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) http.Handler {
var handlerFns = []HandlerFunc{
// Limits the number of concurrent http requests.
setRateLimitHandler,
// Redirect some pre-defined browser request paths to a static
// location prefix.
// Adds 'crossdomain.xml' policy handler to serve legacy flash clients.
setCrossDomainPolicy,
// Redirect some pre-defined browser request paths to a static location prefix.
setBrowserRedirectHandler,
// Validates if incoming request is for restricted buckets.
setPrivateBucketHandler,