From 4089181f72c6e9c96cceff4dd0905bcda208ec05 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 21 Dec 2021 23:18:06 +0100 Subject: askama_rocket: revert to rocket 0.4 for release --- askama_rocket/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_rocket/src') diff --git a/askama_rocket/src/lib.rs b/askama_rocket/src/lib.rs index ae683c9..39c7c07 100644 --- a/askama_rocket/src/lib.rs +++ b/askama_rocket/src/lib.rs @@ -13,6 +13,6 @@ pub fn respond(t: &T, ext: &str) -> Result<'static> { let ctype = ContentType::from_extension(ext).ok_or(Status::InternalServerError)?; Response::build() .header(ctype) - .sized_body(rsp.len(), Cursor::new(rsp)) + .sized_body(Cursor::new(rsp)) .ok() } -- cgit