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 3865b3e commit 8e7d72aCopy full SHA for 8e7d72a
src/http/handle.rs
@@ -312,6 +312,6 @@ mod tests {
312
fn get_header() {
313
let mut h = Handle::new();
314
let r = h.get("/foo").header("foo", "bar");
315
- assert_eq!(r.get_header("foo"), Some(&["bar".to_string()]));
+ assert_eq!(r.get_header("foo"), Some(["bar".to_string()].as_slice()));
316
}
317
0 commit comments