Skip to content

Commit 112015c

Browse files
authored
Merge pull request #471 from splunk/cookie_fix
cookie fix
2 parents 0837de2 + 9ed8a10 commit 112015c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/binding.py

+2-2
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)