Skip to content

Commit

Permalink
Update binding.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashah-splunk committed Jun 7, 2022
1 parent 4109c78 commit 9dbc86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splunklib/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def _auth_headers(self):
token = 'Splunk %s' % self.token
if token:
header.append(("Authorization", token))
if self.get_cookies().__len__() >= 1:
if self.get_cookies().__len__() > 0:
header.append("Cookie", _make_cookie_header(self.get_cookies().items()))

return header
Expand Down

0 comments on commit 9dbc86b

Please sign in to comment.