Keep the old Response::into_json around and call this Response::into_json_deserialize
This commit is contained in:
committed by
Martin Algesten
parent
0b69c595b6
commit
4e744f87c1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user