Fix a typo in middleware.rb