Skip to content

Commit e1be22d

Browse files
alicegoldfussdefnull
authored andcommitted
Fix for Issue #586
1 parent ed32f36 commit e1be22d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bottle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,6 +2689,7 @@ def auth_basic(check, realm="private", text="Access denied"):
26892689
''' Callback decorator to require HTTP auth (basic).
26902690
TODO: Add route(check_auth=...) parameter. '''
26912691
def decorator(func):
2692+
@functools.wraps(func)
26922693
def wrapper(*a, **ka):
26932694
user, password = request.auth or (None, None)
26942695
if user is None or not check(user, password):

0 commit comments

Comments
 (0)