aboutsummaryrefslogtreecommitdiffstats
path: root/askama_rocket/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 6db3b7b..ee70965 100644
--- a/askama_rocket/src/lib.rs
+++ b/askama_rocket/src/lib.rs
@@ -11,6 +11,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(Cursor::new(rsp))
+ .sized_body(rsp.len(), Cursor::new(rsp))
.ok()
}