Make sure we always sent content-length header
This commit is contained in:
1 parent
4cbd49921f
commit
7cb69ae9d9
4 files changed
+38
-82
No files matched your search
@@ -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