Skip to content

Commit e8ae50d

Browse files
committed
Remove key that is commonly flagged by code security scanners
1 parent 3a4a0cd commit e8ae50d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lychee-bin/src/parse.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ mod tests {
5656
assert_eq!(parse_headers(&["accept=text/html"]).unwrap(), custom);
5757

5858
let mut custom_with_equals = HeaderMap::new();
59-
custom_with_equals.insert("Authorization", "Bearer abc=def".parse().unwrap());
60-
assert_eq!(
61-
parse_headers(&["Authorization=***"]).unwrap(),
62-
custom_with_equals
63-
);
59+
custom_with_equals.insert("x-test", "check=this".parse().unwrap());
60+
assert_eq!(parse_headers(&["x-test=check=this"]).unwrap(), custom_with_equals);
6461
}
6562

6663
#[test]

0 commit comments

Comments
 (0)