mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Make sure we always sent content-length header
This commit is contained in:
@@ -104,8 +104,6 @@ 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