Fix WWW-Authenticate: Negotiate check

This commit is contained in:
Quantum 2020-05-03 01:06:40 -04:00
parent cc52f74d9f
commit 7d4e26b959

View file

@ -91,7 +91,7 @@ def make_401(reason, context, negotiate='Negotiate', **kwargs):
</body> </body>
</html> </html>
''' % (reason,), status=401) ''' % (reason,), status=401)
if auth: if negotiate:
resp.headers.add('WWW-Authenticate', negotiate) resp.headers.add('WWW-Authenticate', negotiate)
if LDAP_USER_DN: if LDAP_USER_DN:
resp.headers.add('WWW-Authenticate', 'Basic') resp.headers.add('WWW-Authenticate', 'Basic')