Revert "Fix assumptions about header value types"
This reverts commit 767b7c72f782b04f8e7c714a152a08699ff8c1ca.
This commit is contained in:
parent
38d791b679
commit
03037f6c92
@ -60,9 +60,8 @@ impl Response {
|
|||||||
#( #cfg_attrs )*
|
#( #cfg_attrs )*
|
||||||
#field_name: {
|
#field_name: {
|
||||||
headers.remove(#header_name)
|
headers.remove(#header_name)
|
||||||
.map(|h| h.to_str().map(str::to_owned))
|
.map(|h| h.to_str().map(|s| s.to_owned()))
|
||||||
.transpose()?
|
.transpose()?
|
||||||
.map(Into::into)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -72,7 +71,7 @@ impl Response {
|
|||||||
headers.remove(#header_name)
|
headers.remove(#header_name)
|
||||||
.expect("response missing expected header")
|
.expect("response missing expected header")
|
||||||
.to_str()?
|
.to_str()?
|
||||||
.into()
|
.to_owned()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user