Skip to content

Commit f306710

Browse files
author
Shakeel Mohamed
committed
Remove redundant cookie assignment
1 parent f59d91a commit f306710

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

splunklib/binding.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,6 @@ def delete(self, path_segment, owner=None, app=None, sharing=None, **query):
536536
app=app, sharing=sharing)
537537
logging.debug("DELETE request to %s (body: %s)", path, repr(query))
538538
response = self.http.delete(path, self._auth_headers, **query)
539-
if response.has_key("Set-Cookie"):
540-
self.cookie = response["Set-Cookie"]
541539
return response
542540

543541
@_authentication
@@ -596,8 +594,6 @@ def get(self, path_segment, owner=None, app=None, sharing=None, **query):
596594
app=app, sharing=sharing)
597595
logging.debug("GET request to %s (body: %s)", path, repr(query))
598596
response = self.http.get(path, self._auth_headers, **query)
599-
if response.has_key("Set-Cookie"):
600-
self.cookie = response["Set-Cookie"]
601597
return response
602598

603599
@_authentication
@@ -671,8 +667,6 @@ def post(self, path_segment, owner=None, app=None, sharing=None, headers=None, *
671667
logging.debug("POST request to %s (body: %s)", path, repr(query))
672668
all_headers = headers + self._auth_headers
673669
response = self.http.post(path, all_headers, **query)
674-
if response.has_key("Set-Cookie"):
675-
self.cookie = response["Set-Cookie"]
676670
return response
677671

678672
@_authentication
@@ -744,8 +738,6 @@ def request(self, path_segment, method="GET", headers=None, body="",
744738
{'method': method,
745739
'headers': all_headers,
746740
'body': body})
747-
if response.has_key("Set-Cookie"):
748-
self.cookie = response["Set-Cookie"]
749741
return response
750742

751743
def login(self):

0 commit comments

Comments
 (0)