avoid panic for headers

This commit is contained in:
Martin Algesten
2018-07-02 09:09:26 +02:00
parent 312c4e5662
commit 9cf33365e5
4 changed files with 10 additions and 15 deletions

View File

@@ -119,7 +119,7 @@ impl Agent {
{
add_header(
&mut self.headers,
Header::new(&header.into(), &value.into()).expect("Failed to parse header"),
Header::new(&header.into(), &value.into()),
);
self
}