Michael Pasternak has uploaded a new change for review. Change subject: sdk: allow persistent_auth via localhost ......................................................................
sdk: allow persistent_auth via localhost Change-Id: If3df5b766cfcea48dcc5a9cfb266c55570e55234 Signed-off-by: Michael Pasternak <[email protected]> --- M src/ovirtsdk/infrastructure/proxy.py 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/63/8163/1 diff --git a/src/ovirtsdk/infrastructure/proxy.py b/src/ovirtsdk/infrastructure/proxy.py index 52d5856..83122a9 100644 --- a/src/ovirtsdk/infrastructure/proxy.py +++ b/src/ovirtsdk/infrastructure/proxy.py @@ -20,6 +20,7 @@ from ovirtsdk.infrastructure.errors import RequestError, ConnectionError from ovirtsdk.xml import params +from cookielib import DefaultCookiePolicy class CookieJarAdapter(): """ @@ -131,6 +132,9 @@ try: # Add cookie headers as needed: request_adapter = CookieJarAdapter(self._url, headers) + self._cookies_jar.set_policy( + cookielib.DefaultCookiePolicy( + strict_ns_domain=DefaultCookiePolicy.DomainStrictNoDots)) self._cookies_jar.add_cookie_header(request_adapter) # Every request except the last one should indicate that we prefer -- To view, visit http://gerrit.ovirt.org/8163 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If3df5b766cfcea48dcc5a9cfb266c55570e55234 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: master Gerrit-Owner: Michael Pasternak <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
