diff --git a/pyicloud/base.py b/pyicloud/base.py index 1b03a22..f7e43c4 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -60,9 +60,9 @@ class PyiCloudService(object): self.session = requests.Session() self.session.verify = verify self.session.headers.update({ - 'host': 'setup.icloud.com', - 'origin': self._home_endpoint, - 'referer': '%s/' % self._home_endpoint, + 'Host': 'setup.icloud.com', + 'Origin': self._home_endpoint, + 'Referer': '%s/' % self._home_endpoint, 'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)' })