Fix http header accept parsing problem (#3185)

## Issue Addressed

Which issue # does this PR address?
#3114 

## Proposed Changes

1. introduce `mime` package 
2. Parse `Accept` field in the header with `mime`

## Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.
This commit is contained in:
will
2022-05-18 06:50:50 +00:00
parent def9bc660e
commit 0428018cc1
3 changed files with 51 additions and 6 deletions

1
Cargo.lock generated
View File

@@ -1586,6 +1586,7 @@ dependencies = [
"futures-util",
"libsecp256k1",
"lighthouse_network",
"mime",
"procinfo",
"proto_array",
"psutil",