Skip to content

Commit

Permalink
fix: use correct variable for _validate_sec_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
clarsen authored Mar 26, 2024
1 parent 1dec101 commit d9a52fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyhaystack/client/ops/vendor/skyspark_scram.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ def _validate_sec_msg(self, response):
if e.status != 401 and e.status != 303:
raise
try:
server_response = e.headers.get("WWW-Authenticate")
if not server_response:
server_response = e.headers.get("www-authenticate")
if not server_response:
header_response = e.headers.get("WWW-Authenticate")
if not header_response:
header_response = e.headers.get("www-authenticate")
if not header_response:
raise Exception("WWW-Authenticate/www-authenticate not returned")
tab_header = header_response.split(",")
server_data = scram.regex_after_equal(tab_header[0])
Expand Down

0 comments on commit d9a52fd

Please sign in to comment.