Pass around actual request object, not Werkzeug's LocalProxy