Skip to content

Commit 21b0317

Browse files
committed
updated to work with rust-dev changes
1 parent f574d17 commit 21b0317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/http/handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl<'a, 'b> Request<'a, 'b> {
168168
}
169169

170170
pub fn get_header<'a>(&'a self, name: &str) -> Option<&'a [String]> {
171-
self.headers.find_equiv(&name).map(|a| a.as_slice())
171+
self.headers.find_equiv(name).map(|a| a.as_slice())
172172
}
173173

174174
pub fn headers<'c, 'd, I: Iterator<(&'c str, &'d str)>>(mut self, mut hdrs: I) -> Request<'a, 'b> {

src/http/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Response {
2828

2929
pub fn get_header<'a>(&'a self, name: &str) -> &'a [String] {
3030
self.hdrs
31-
.find_equiv(&name)
31+
.find_equiv(name)
3232
.map(|v| v.as_slice())
3333
.unwrap_or(&[])
3434
}

0 commit comments

Comments
 (0)