Skip to content

Commit

Permalink
Merge pull request #471 from splunk/cookie_fix
Browse files Browse the repository at this point in the history
cookie fix
  • Loading branch information
ashah-splunk committed Jul 13, 2022
2 parents 0837de2 + 9ed8a10 commit 112015c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splunklib/binding.py
Expand Up @@ -543,8 +543,8 @@ def _auth_headers(self):
token = 'Splunk %s' % self.token
if token:
header.append(("Authorization", token))
if self.get_cookies().__len__() > 0:
header.append("Cookie", _make_cookie_header(self.get_cookies().items()))
if self.get_cookies():
header.append(("Cookie", _make_cookie_header(list(self.get_cookies().items()))))

return header

Expand Down

0 comments on commit 112015c

Please sign in to comment.