We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d7770 commit c162144Copy full SHA for c162144
pychromecast/dial.py
@@ -90,7 +90,8 @@ def _get_status(
90
_LOGGER.debug("Resolved service %s to %s", service, host)
91
break
92
93
- headers = {"content-type": "application/json"}
+ # unsetting the host header, as requests with a domain would be blocked otherwise
94
+ headers = {"host": "", "content-type": "application/json"}
95
96
if secure:
97
url = FORMAT_BASE_URL_HTTPS.format(host) + path
0 commit comments