mirror of
https://github.com/actix/examples
synced 2025-02-02 09:39:03 +01:00
Fix tests for the template_yarte example.
This commit is contained in:
parent
98cac8668c
commit
60bd816ed7
@ -44,7 +44,7 @@ mod test {
|
|||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
||||||
"text/html"
|
"text/html; charset=utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
let bytes = atest::read_body(resp);
|
let bytes = atest::read_body(resp);
|
||||||
@ -73,7 +73,7 @@ mod test {
|
|||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
||||||
"text/html"
|
"text/html; charset=utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
let bytes = atest::read_body(resp);
|
let bytes = atest::read_body(resp);
|
||||||
@ -102,7 +102,7 @@ mod test {
|
|||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
resp.headers().get(http::header::CONTENT_TYPE).unwrap(),
|
||||||
"text/html"
|
"text/html; charset=utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
let bytes = atest::read_body(resp);
|
let bytes = atest::read_body(resp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user