1
0
Fork 0
mirror of https://github.com/quantum5/nginx-krbauth.git synced 2025-04-24 20:41:57 -04:00

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>
</html>
''' % (reason,), status=401)
if auth:
if negotiate:
resp.headers.add('WWW-Authenticate', negotiate)
if LDAP_USER_DN:
resp.headers.add('WWW-Authenticate', 'Basic')