This commit is contained in:
Pascal Vizeli 2019-11-07 15:12:42 +00:00
parent a92cab48e0
commit ce3d3d58ec

View File

@ -16,7 +16,7 @@ from ..exceptions import HomeAssistantAuthError, HomeAssistantAPIError, APIError
_LOGGER: logging.Logger = logging.getLogger(__name__)
LEGACY_HEADER = ("X-Speech-Content",)
FORWARD_HEADERS = ("X-Speech-Content",)
class APIProxy(CoreSysAttributes):
@ -51,7 +51,7 @@ class APIProxy(CoreSysAttributes):
headers={
name: value
for name, value in request.headers.items()
if name in LEGACY_HEADER
if name in FORWARD_HEADERS
},
content_type=request.content_type,
data=request.content,