Add Hass.io user headers to supervisor proxy

This commit is contained in:
Paulus Schoutsen 2018-12-17 11:27:03 +01:00
parent 3f65a03024
commit fd21d6cc9d
5 changed files with 46 additions and 6 deletions

View file

@ -182,6 +182,11 @@ class AiohttpClientMockResponse:
"""Return yarl of URL."""
return self._url
@property
def content_type(self):
"""Return yarl of URL."""
return self._headers.get('content-type')
@property
def content(self):
"""Return content."""