Update middleware.rb

quick dirty fix for remotipart ... don't use