aboutsummaryrefslogtreecommitdiffstats
path: root/askama_rocket/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'askama_rocket/src/lib.rs')
-rw-r--r--askama_rocket/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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: Template>(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()
}