From 9889a7cb193b95709de85d9d10ec36b686954bd3 Mon Sep 17 00:00:00 2001 From: Alice Goldfuss Date: Tue, 11 Feb 2014 17:14:26 -0800 Subject: [PATCH] Fix for Issue #586 --- bottle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bottle.py b/bottle.py index 4da3557f2..71508ba05 100644 --- a/bottle.py +++ b/bottle.py @@ -2544,6 +2544,7 @@ def auth_basic(check, realm="private", text="Access denied"): ''' Callback decorator to require HTTP auth (basic). TODO: Add route(check_auth=...) parameter. ''' def decorator(func): + @functools.wraps(func) def wrapper(*a, **ka): user, password = request.auth or (None, None) if user is None or not check(user, password):