Skip to content

Commit

Permalink
cookie fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashah-splunk committed Jun 23, 2022
1 parent 66a8741 commit 9ed8a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splunklib/binding.py
Original file line number Diff line number Diff line change
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 9ed8a10

Please sign in to comment.