Don't set host header in reminders service
It's automatically taken care of by the requests module based on the URL, and explicitly setting it on the globally shared session object results in other services (such as the calendar service) breaking when used after the reminders service in the same session.
This commit is contained in:
parent
b2f0cb992c
commit
8e45bf98db
1 changed files with 0 additions and 6 deletions
|
@ -49,9 +49,6 @@ class RemindersService(object):
|
||||||
return self.get_all_possible_timezones_of_local_machine()[0]
|
return self.get_all_possible_timezones_of_local_machine()[0]
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
host = self._service_root.split('//')[1].split(':')[0]
|
|
||||||
self.session.headers.update({'host': host})
|
|
||||||
|
|
||||||
params_reminders = dict(self.params)
|
params_reminders = dict(self.params)
|
||||||
params_reminders.update({
|
params_reminders.update({
|
||||||
'clientVersion': '4.0',
|
'clientVersion': '4.0',
|
||||||
|
@ -107,9 +104,6 @@ class RemindersService(object):
|
||||||
if collection in self.collections:
|
if collection in self.collections:
|
||||||
pguid = self.collections[collection]['guid']
|
pguid = self.collections[collection]['guid']
|
||||||
|
|
||||||
host = self._service_root.split('//')[1].split(':')[0]
|
|
||||||
self.session.headers.update({'host': host})
|
|
||||||
|
|
||||||
params_reminders = dict(self.params)
|
params_reminders = dict(self.params)
|
||||||
params_reminders.update({
|
params_reminders.update({
|
||||||
'clientVersion': '4.0',
|
'clientVersion': '4.0',
|
||||||
|
|
Loading…
Reference in a new issue