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 53fd6a6 commit dae51d7Copy full SHA for dae51d7
src/headers/headers.rs
@@ -61,7 +61,7 @@ impl Headers {
61
/// header if there aren't any. Or else append to the existing list of headers.
62
pub fn append(&mut self, name: impl Into<HeaderName>, values: impl ToHeaderValues) {
63
let name = name.into();
64
- match self.get_mut(name.clone()) {
+ match self.get_mut(&name) {
65
Some(headers) => {
66
let mut values: HeaderValues = values.to_header_values().unwrap().collect();
67
headers.append(&mut values);
0 commit comments