summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Goldfuss <alice@newrelic.com>2014-02-11 17:14:26 -0800
committerMarcel Hellkamp <marc@gsites.de>2021-07-07 13:10:05 +0200
commite1be22df61b9d545b7af3d8990603f4782eecced (patch)
tree17db548b88260a49712b92e16ad89ee684ab0b6e
parented32f36b3feb8bbf1edaed4875b9820c9a71792e (diff)
downloadbottle-e1be22df61b9d545b7af3d8990603f4782eecced.tar.gz
Fix for Issue #586
-rw-r--r--bottle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bottle.py b/bottle.py
index 406762f..04ccf7d 100644
--- a/bottle.py
+++ b/bottle.py
@@ -2689,6 +2689,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):