Skip to content

Commit 623b873

Browse files
author
Ben Stern
committed
Fix RUSTSEC-2020-0031
1 parent 4770db9 commit 623b873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl FromStr for HeaderField {
239239
type Err = ();
240240

241241
fn from_str(s: &str) -> Result<HeaderField, ()> {
242-
AsciiString::from_ascii(s.trim())
242+
AsciiString::from_ascii(s)
243243
.map(HeaderField)
244244
.map_err(|_| ())
245245
}

0 commit comments

Comments
 (0)