mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
Use UInt instead of u32 for max request size
Sometimes you just really want to upload a full disk image as media.
This commit is contained in:
parent
99924e5779
commit
5616510727
3 changed files with 8 additions and 8 deletions
|
|
@ -129,7 +129,7 @@ pub(crate) async fn get_media_config_legacy_route(
|
|||
_body: Ar<legacy_media::get_media_config::v3::Request>,
|
||||
) -> Result<Ra<legacy_media::get_media_config::v3::Response>> {
|
||||
Ok(Ra(legacy_media::get_media_config::v3::Response {
|
||||
upload_size: services().globals.max_request_size().into(),
|
||||
upload_size: services().globals.max_request_size(),
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
@ -140,7 +140,7 @@ pub(crate) async fn get_media_config_route(
|
|||
_body: Ar<authenticated_media_client::get_media_config::v1::Request>,
|
||||
) -> Result<Ra<authenticated_media_client::get_media_config::v1::Response>> {
|
||||
Ok(Ra(authenticated_media_client::get_media_config::v1::Response {
|
||||
upload_size: services().globals.max_request_size().into(),
|
||||
upload_size: services().globals.max_request_size(),
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue