summary refs log tree commit diff
path: root/synapse/federation/federation_server.py
diff options
context:
space:
mode:
authorJeremy Cline <jeremy@jcline.org>2017-09-30 11:22:37 -0400
committerJeremy Cline <jeremy@jcline.org>2017-09-30 11:22:37 -0400
commitcafb8de132999507e9b05c751fbb32d199e7de50 (patch)
treea08c6b98cb6c1a18f7e168bb84a60c53c19a6b1c /synapse/federation/federation_server.py
parentMerge pull request #2464 from rnbdsh/patch-4 (diff)
downloadsynapse-cafb8de132999507e9b05c751fbb32d199e7de50.tar.xz
Unfreeze event before serializing with ujson
In newer versions of https://github.com/esnme/ultrajson, ujson does not
serialize frozendicts (introduced in esnme/ultrajson@53f85b1). Although
the PyPI version is still 1.35, Fedora ships with a build from commit
esnme/ultrajson@2f1d487. This causes the serialization to fail if the
distribution-provided package is used.

This runs the event through the unfreeze utility before serializing it.

Thanks to @ignatenkobrain for tracking down the root cause.

fixes #2351

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Diffstat (limited to 'synapse/federation/federation_server.py')
0 files changed, 0 insertions, 0 deletions