Normalize HTTP header names to title case
The spec says they are case insensitive, so this is just for consistency (with eg. Chrome).
This commit is contained in:
parent
604fe68414
commit
603b1d8f57
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@ class PyiCloudService(object):
|
||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
self.session.verify = verify
|
self.session.verify = verify
|
||||||
self.session.headers.update({
|
self.session.headers.update({
|
||||||
'host': 'setup.icloud.com',
|
'Host': 'setup.icloud.com',
|
||||||
'origin': self._home_endpoint,
|
'Origin': self._home_endpoint,
|
||||||
'referer': '%s/' % self._home_endpoint,
|
'Referer': '%s/' % self._home_endpoint,
|
||||||
'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)'
|
'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue