diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-04-15 13:19:57 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-04-15 13:20:08 +0100 |
commit | 84f9cac4d0a7f19b432e683981f66c20339a60f5 (patch) | |
tree | 09843c3d696552e5db69f0cab65482407ebbaf34 /synapse/rest/media/v1 | |
parent | Merge pull request #731 from matrix-org/erikj/timed_otu (diff) | |
download | synapse-84f9cac4d0a7f19b432e683981f66c20339a60f5.tar.xz |
fix cyrillic URL previews by hardcoding all page decoding to UTF-8 for now, rather than relying on lxml's heuristics which seem to get it wrong
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py |