diff options
author | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2023-03-20 09:24:00 +0100 |
---|---|---|
committer | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2023-03-20 09:24:00 +0100 |
commit | 0459d2b9e586b53d0ffc9f362f1dcd42b79995f5 (patch) | |
tree | 90c0021924264358e9638bdf161aa446c642da56 /mediaapi | |
parent | 5579121c6f27105342a2aea05cf9a3119d73cecb (diff) |
Make "m.upload.size" optional
Diffstat (limited to 'mediaapi')
-rw-r--r-- | mediaapi/routing/routing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediaapi/routing/routing.go b/mediaapi/routing/routing.go index 50af2f88..8a4a5afc 100644 --- a/mediaapi/routing/routing.go +++ b/mediaapi/routing/routing.go @@ -35,7 +35,7 @@ import ( // configResponse is the response to GET /_matrix/media/r0/config // https://matrix.org/docs/spec/client_server/latest#get-matrix-media-r0-config type configResponse struct { - UploadSize *config.FileSizeBytes `json:"m.upload.size"` + UploadSize *config.FileSizeBytes `json:"m.upload.size,omitempty"` } // Setup registers the media API HTTP handlers |