mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
FIX #91: missspelled header(s)
kwd in AuthDenying HTTPError.
This commit is contained in:
parent
332b393c5b
commit
98c654d0b3
@ -55,7 +55,7 @@ class auth(object):
|
||||
if self.action in config.authenticated:
|
||||
if not request.auth or request.auth[1] is None:
|
||||
raise HTTPError(
|
||||
401, header={"WWW-Authenticate": 'Basic realm="pypi"'})
|
||||
401, headers={"WWW-Authenticate": 'Basic realm="pypi"'})
|
||||
if not validate_user(*request.auth):
|
||||
raise HTTPError(403)
|
||||
return method(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user