diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2022-06-16 07:44:06 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-06-16 08:44:28 +0200 |
commit | 5cdffd6e0e9eb0a408cec6e5a143231e139970fe (patch) | |
tree | a2c803de0fac66fa07f217878479fdb87143cb93 /askama_rocket/src/lib.rs | |
parent | d4c13f5b4367fd3ca57fc14fdcf1d01694060c7a (diff) | |
download | askama-5cdffd6e0e9eb0a408cec6e5a143231e139970fe.tar.gz askama-5cdffd6e0e9eb0a408cec6e5a143231e139970fe.tar.bz2 askama-5cdffd6e0e9eb0a408cec6e5a143231e139970fe.zip |
Update to Rocket 0.5
Though Rocket 0.5 still only a release candidate, Rocket 0.4 severely
outdated, and depends on a bunch of crates with active security
advisories. Rocket 0.5 updates its dependencies to fixes versions.
Also Rocket 0.4 needs a nightly Rust, which caused multiple problems.
Diffstat (limited to 'askama_rocket/src/lib.rs')
-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 f10ba87..fb231a4 100644 --- a/askama_rocket/src/lib.rs +++ b/askama_rocket/src/lib.rs @@ -14,6 +14,6 @@ pub fn respond<T: Template>(t: &T, _ext: &str) -> Result<'static> { let rsp = t.render().map_err(|_| Status::InternalServerError)?; Response::build() .header(Header::new("content-type", T::MIME_TYPE)) - .sized_body(Cursor::new(rsp)) + .sized_body(rsp.len(), Cursor::new(rsp)) .ok() } |