Use #[ruma_api(raw_body)] for r0::media::{get,create}_media

This commit is contained in:
Jonas Platte 2020-01-13 20:20:17 +01:00
parent 246de19790
commit 258fbf5a01
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ edition = "2018"
[dependencies]
js_int = { version = "0.1.2", features = ["serde"] }
ruma-api = "0.12.0"
ruma-api = "0.12.1"
ruma-events = "0.15.1"
ruma-identifiers = "0.14.0"
serde = { version = "1.0.103", features = ["derive"] }

View File

@ -21,7 +21,7 @@ ruma_api! {
#[ruma_api(header = CONTENT_TYPE)]
pub content_type: String,
/// The file contents to upload.
#[ruma_api(body)]
#[ruma_api(raw_body)]
pub file: Vec<u8>,
}

View File

@ -25,7 +25,7 @@ ruma_api! {
response {
/// The content that was previously uploaded.
#[ruma_api(body)]
#[ruma_api(raw_body)]
pub file: Vec<u8>,
/// The content type of the file that was previously uploaded.
#[ruma_api(header = CONTENT_TYPE)]