Keep the old Response::into_json around and call this Response::into_json_deserialize

This commit is contained in:
Paolo Barbolini
2020-05-04 21:45:27 +02:00
committed by Martin Algesten
parent 0b69c595b6
commit 4e744f87c1
3 changed files with 63 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ fn agent_set_cookie() {
assert_eq!(resp.status(), 200);
assert_eq!(
"name=value",
resp.into_json::<HttpBin>()
resp.into_json_deserialize::<HttpBin>()
.unwrap()
.headers
.get("Cookie")