Skip to content

Commit 9ed8a10

Browse files
committed
cookie fix
1 parent 66a8741 commit 9ed8a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ def _auth_headers(self):
543543
token = 'Splunk %s' % self.token
544544
if token:
545545
header.append(("Authorization", token))
546-
if self.get_cookies().__len__() > 0:
547-
header.append("Cookie", _make_cookie_header(self.get_cookies().items()))
546+
if self.get_cookies():
547+
header.append(("Cookie", _make_cookie_header(list(self.get_cookies().items()))))
548548

549549
return header
550550

0 commit comments

Comments
 (0)