mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:36:06 -04:00
Iteratively encode JSON responses to avoid blocking the reactor. (#8013)
This commit is contained in:
parent
25e55d2598
commit
2f4d60a5ba
5 changed files with 94 additions and 13 deletions
|
@ -178,7 +178,6 @@ class JsonResourceTests(unittest.TestCase):
|
|||
|
||||
self.assertEqual(channel.result["code"], b"200")
|
||||
self.assertNotIn("body", channel.result)
|
||||
self.assertEqual(channel.headers.getRawHeaders(b"Content-Length"), [b"15"])
|
||||
|
||||
|
||||
class OptionsResourceTests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue