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

This commit is contained in:
Paolo Barbolini authored and Martin Algesten committed 2020-05-06 13:47:37 +02:00
1 parent 0b69c595b6
commit 4e744f87c1
3 files changed
+63 -6

No files matched your search

+1 -1
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")