Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop cookies from duplicating on each item processed #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions package-mac/source/ebi/equellaclient41.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,7 @@ def _call (self, name, args, returns=1, facade=SOAP_ENDPOINT_V41, ns='http://soa
headers = {}
cookie = responseInfo.getheader('set-cookie')
if cookie is not None:
for cookie_part in cookie.split(','):
for cookie_name in cookie_part.split(','):
if not cookie_name.upper().split("=")[0].strip() in ["PATH", "DOMAIN", "EXPIRES", "SECURE",
"HTTPONLY"]:
# save cookie
self._cookieJar.append(cookie_name)
self._cookieJar = cookie.split(',')

if self.owner.networkLogging:
self.owner.echo("HTTP RESPONSE:\n")
Expand Down
7 changes: 1 addition & 6 deletions source/equellaclient41.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,7 @@ def _call (self, name, args, returns=1, facade=SOAP_ENDPOINT_V41, ns='http://soa
headers = {}
cookie = responseInfo.getheader('set-cookie')
if cookie is not None:
for cookie_part in cookie.split(','):
for cookie_name in cookie_part.split(','):
if not cookie_name.upper().split("=")[0].strip() in ["PATH", "DOMAIN", "EXPIRES", "SECURE",
"HTTPONLY"]:
# save cookie
self._cookieJar.append(cookie_name)
self._cookieJar = cookie.split(',')

if self.owner.networkLogging:
self.owner.echo("HTTP RESPONSE:\n")
Expand Down