Implemented fix stolen at https://github.com/sr/sinatra-authorization/blob/master/lib/sinatra/authorization.rb