forked from github.com/pypiserver
reply with 401 if password is None
'python setup.py register' does call us with no password. passlib throws an error when called with password=None and we really like to make setup.py register to go on with a password. also see issue #11
This commit is contained in:
parent
fe5c7da95b
commit
7e45832df3
@ -85,7 +85,7 @@ easy_install -i %(URL)ssimple/ PACKAGE
|
||||
|
||||
@app.post('/')
|
||||
def update():
|
||||
if not request.auth:
|
||||
if not request.auth or request.auth[1] is None:
|
||||
raise HTTPError(401, header={"WWW-Authenticate": 'Basic realm="pypi"'})
|
||||
|
||||
if not validate_user(*request.auth):
|
||||
|
Loading…
Reference in New Issue
Block a user