0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 08:33:45 +01:00
dendrite/mediaapi/routing
S7evinK 25dcf80180
Ratelimit requests to /media/r0/download|upload (#2020)
* Add /media/r0/config handler

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add rate limiting to media api

* Rename variable

* Add passing tests

* Don't send multiple headers

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-11-24 12:55:44 +00:00
..
download.go 0️⃣ Media API: Fix maxFileSizeBytes=0 handling (#1993) 2021-11-02 16:35:15 +00:00
routing.go Ratelimit requests to /media/r0/download|upload (#2020) 2021-11-24 12:55:44 +00:00
upload.go Set MaxFileSizeBytes <= 0 to unlimited (#1876) 2021-07-19 17:58:51 +01:00
upload_test.go Use LimitReader to prevent DoS risk (#1843) 2021-06-07 09:17:20 +01:00