mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 00:56:29 +00:00
Fix bug with proxy (#599)
This commit is contained in:
parent
2116d56124
commit
e777bbd024
@ -380,10 +380,12 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
url = f"{self.api_url}/{path}"
|
url = f"{self.api_url}/{path}"
|
||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
|
# Passthrough content type
|
||||||
if content_type is not None:
|
if content_type is not None:
|
||||||
headers[hdrs.CONTENT_TYPE] = content_type
|
headers[hdrs.CONTENT_TYPE] = content_type
|
||||||
|
|
||||||
elif self.api_password:
|
# Set old API Password
|
||||||
|
if self.api_password:
|
||||||
headers[HEADER_HA_ACCESS] = self.api_password
|
headers[HEADER_HA_ACCESS] = self.api_password
|
||||||
|
|
||||||
for _ in (1, 2):
|
for _ in (1, 2):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user