mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Add content-length header to http resonses
This commit is contained in:
@@ -104,6 +104,8 @@ class TestAPI(unittest.TestCase):
|
||||
_url(const.URL_API_STATES_ENTITY.format("test.test")),
|
||||
headers=HA_HEADERS)
|
||||
|
||||
self.assertEqual(req.headers['content-length'], str(len(req.content)))
|
||||
|
||||
data = ha.State.from_dict(req.json())
|
||||
|
||||
state = hass.states.get("test.test")
|
||||
|
||||
Reference in New Issue
Block a user