Update middleware.rb
Merge pull request #143 from hackeron/master

Make better_errors work when env["REMOTE_ADDR"] is empty