diff --git a/Cargo.toml b/Cargo.toml index 47b7cb11..d7da2448 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/src/r0/media/create_content.rs b/src/r0/media/create_content.rs index 5cc22aec..2a9f8eea 100644 --- a/src/r0/media/create_content.rs +++ b/src/r0/media/create_content.rs @@ -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, } diff --git a/src/r0/media/get_content.rs b/src/r0/media/get_content.rs index 83f9d937..3374729a 100644 --- a/src/r0/media/get_content.rs +++ b/src/r0/media/get_content.rs @@ -25,7 +25,7 @@ ruma_api! { response { /// The content that was previously uploaded. - #[ruma_api(body)] + #[ruma_api(raw_body)] pub file: Vec, /// The content type of the file that was previously uploaded. #[ruma_api(header = CONTENT_TYPE)]