Skip to content

Commit

Permalink
update map_err now maps into http::error::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
tzilist committed Nov 15, 2018
1 parent 656b5cd commit 145911b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/default_headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ impl DefaultHeaders {
HeaderValue: HttpTryFrom<V>,
{
let value = HeaderValue::try_from(value)
.map_err(|_| ())
.expect("Cannot create default header. Please check your default header values.");
.map_err(Into::into)
.expect("Cannot create default header");

self.headers.append(key, value);

Expand Down

0 comments on commit 145911b

Please sign in to comment.