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:
Tor Arne Vestbø 2016-03-12 14:46:23 +01:00
parent b2f0cb992c
commit 8e45bf98db

View file

@ -49,9 +49,6 @@ class RemindersService(object):
return self.get_all_possible_timezones_of_local_machine()[0]
def refresh(self):
host = self._service_root.split('//')[1].split(':')[0]
self.session.headers.update({'host': host})
params_reminders = dict(self.params)
params_reminders.update({
'clientVersion': '4.0',
@ -107,9 +104,6 @@ class RemindersService(object):
if collection in self.collections:
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.update({
'clientVersion': '4.0',