Skip to content

Commit f59d91a

Browse files
author
Shakeel Mohamed
committed
Update cookie from header in Context.request(self, url, message, **kwargs)
1 parent ec173f7 commit f59d91a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

splunklib/binding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ def request(self, url, message, **kwargs):
11451145
response = record(response)
11461146
if 400 <= response.status:
11471147
raise HTTPError(response)
1148+
if response.has_key("Set-Cookie"):
1149+
self.cookie = response["Set-Cookie"]
11481150
return response
11491151

11501152

0 commit comments

Comments
 (0)