diff options
Diffstat (limited to '')
-rw-r--r-- | askama/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 1d66feb..2e69dfd 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -502,7 +502,7 @@ pub mod actix_web { let rsp = self .render() .map_err(|_| ErrorInternalServerError("Template render error"))?; - let ext = T::extension().unwrap_or(""); + let ext = T::extension().unwrap_or("txt"); let ctype = get_mime_type(ext).to_string(); Ok(HttpResponse::Ok().content_type(ctype.as_str()).body(rsp)) } |