We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53cfeb6 commit e88d8fcCopy full SHA for e88d8fc
src/headers/to_header_values.rs
@@ -70,9 +70,6 @@ impl ToHeaderValues for Cow<'_, str> {
70
type Iter = option::IntoIter<HeaderValue>;
71
72
fn to_header_values(&self) -> crate::Result<Self::Iter> {
73
- let value = self
74
- .parse()
75
- .map_err(|err| io::Error::new(io::ErrorKind::Other, err))?;
76
- Ok(Some(value).into_iter())
+ self.as_ref().to_header_values()
77
}
78
0 commit comments