From 8a14abaa1e74a5a0e18c3ab53a0eb5f417efd7f3 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Sat, 2 May 2015 14:57:34 -0400 Subject: [PATCH] Fix failing test --- flask_security/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_security/decorators.py b/flask_security/decorators.py index 356b5695..6a011fb9 100644 --- a/flask_security/decorators.py +++ b/flask_security/decorators.py @@ -154,7 +154,7 @@ def decorated_view(*args, **kwargs): if _security._unauthorized_callback: return _security._unauthorized_callback() else: - return _get_unauthorized_response() + return _get_unauthorized_response(headers=h) return decorated_view return wrapper