dummy fix for Rails 4.0 - ActionDispatch::Http::Headers is no longer Hash, so send request.env instead