From 258fbf5a0154602612ed6bb18821b62791ff3f7a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 13 Jan 2020 20:20:17 +0100 Subject: [PATCH] Use #[ruma_api(raw_body)] for r0::media::{get,create}_media --- Cargo.toml | 2 +- src/r0/media/create_content.rs | 2 +- src/r0/media/get_content.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)]