Commit 21e23244 authored by Alessio Caiazza's avatar Alessio Caiazza

Ensure right order of processing multipart requests

Gitlab::Middleware::Multipart mus be executed before
ApolloUploadServer::Middleware in order to handle workhorse upload
acceleration.
parent 1d4ed2c5
Rails.application.configure do |config|
config.middleware.use(Gitlab::Middleware::Multipart)
# ApolloUploadServer::Middleware expects to find uploaded files ready to use
config.middleware.insert_before(ApolloUploadServer::Middleware, Gitlab::Middleware::Multipart)
end
# The Gitlab::Middleware::Multipart middleware inserts instances of our
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment