From 6dec0ea0f1770ca050d08977445dc70b0cbf5db8 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sat, 3 Oct 2015 21:25:18 -0700 Subject: [PATCH 1/2] Changes required for Domain Shared Contacts --- src/atom/service.py | 3 ++- src/gdata/service.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/atom/service.py b/src/atom/service.py index 306bcd9f..b399cff4 100644 --- a/src/atom/service.py +++ b/src/atom/service.py @@ -181,7 +181,8 @@ class AtomService(object): if content_length: all_headers['Content-Length'] = str(content_length) - all_headers['GData-Version'] = '2.0' + if 'GData-Version' not in all_headers: + all_headers['GData-Version'] = '2.0' # Find an Authorization token for this URL if one is available. if self.override_token: auth_token = self.override_token diff --git a/src/gdata/service.py b/src/gdata/service.py index 5b103b9f..05b1bf24 100644 --- a/src/gdata/service.py +++ b/src/gdata/service.py @@ -233,7 +233,7 @@ class GDataService(atom.service.AtomService): and remove_token. """ atom.service.AtomService.__init__(self, http_client=http_client, - token_store=token_store) + additional_headers=additional_headers, token_store=token_store) self.email = email self.password = password self.account_type = account_type From 50a33a5083b439a88fb16632ec6bd0e1895452bd Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sun, 4 Oct 2015 08:23:00 -0700 Subject: [PATCH 2/2] gdata/service.py change not required --- src/gdata/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdata/service.py b/src/gdata/service.py index 05b1bf24..5b103b9f 100644 --- a/src/gdata/service.py +++ b/src/gdata/service.py @@ -233,7 +233,7 @@ class GDataService(atom.service.AtomService): and remove_token. """ atom.service.AtomService.__init__(self, http_client=http_client, - additional_headers=additional_headers, token_store=token_store) + token_store=token_store) self.email = email self.password = password self.account_type = account_type