0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-30 15:04:57 +02:00
Commit graph

1 commit

Author SHA1 Message Date
Patrick Cloke 8ec2217103
Reduce the memory usage of previewing media files. (#9421)
This reduces the memory usage of previewing media files which
end up larger than the `max_spider_size` by avoiding buffering
content internally in treq.

It also checks the `Content-Length` header in additional places
instead of streaming the content to check the body length.
2021-02-18 09:01:29 -05:00