Skip to content

Commit 2bedfbc

Browse files
author
Alejandro Casanovas
committed
remove Prefer UTC header from tasks.py
1 parent 6c31b82 commit 2bedfbc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

O365/tasks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,7 @@ def get_tasks(self, batch=None, order_by=None):
490490
if order_by:
491491
params['$orderby'] = order_by
492492

493-
response = self.con.get(url, params=params,
494-
headers={'Prefer': 'outlook.timezone="UTC"'})
493+
response = self.con.get(url, params=params)
495494

496495
if not response:
497496
return iter(())
@@ -533,8 +532,8 @@ def get_task(self, param):
533532
params.update(param.as_params())
534533
by_id = False
535534

536-
response = self.con.get(url, params=params,
537-
headers={'Prefer': 'outlook.timezone="UTC"'})
535+
response = self.con.get(url, params=params)
536+
538537
if not response:
539538
return None
540539

0 commit comments

Comments
 (0)