Skip to content

Commit

Permalink
Fix RUSTSEC-2020-0031
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Stern committed Jan 2, 2021
1 parent 4770db9 commit 623b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ impl FromStr for HeaderField {
type Err = ();

fn from_str(s: &str) -> Result<HeaderField, ()> {
AsciiString::from_ascii(s.trim())
AsciiString::from_ascii(s)
.map(HeaderField)
.map_err(|_| ())
}
Expand Down

0 comments on commit 623b873

Please # to comment.