diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-21 23:18:06 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-01-04 21:30:15 +0100 |
commit | 4089181f72c6e9c96cceff4dd0905bcda208ec05 (patch) | |
tree | 3812e1a4ad7fd7f3e2ae54b2803a1fd3fa8b93e7 /askama_rocket/src/lib.rs | |
parent | 42d80ad6cdb1a4ff9ff8fcc088b25d5f7b66a393 (diff) | |
download | askama-4089181f72c6e9c96cceff4dd0905bcda208ec05.tar.gz askama-4089181f72c6e9c96cceff4dd0905bcda208ec05.tar.bz2 askama-4089181f72c6e9c96cceff4dd0905bcda208ec05.zip |
askama_rocket: revert to rocket 0.4 for release
Diffstat (limited to '')
-rw-r--r-- | askama_rocket/src/lib.rs | 2 |
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() } |