Update middleware.rb
Merge pull request #1 from ethco/patch-1

Update middleware.rb