Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1Yo committed Apr 13, 2022
2 parents ec27d57 + d9b25b5 commit 63d4f8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ pub fn fix_headers<'a>(header: &'a str) -> Option<String> {

if RE.is_match(header) {
Some(RE.replace_all(header, "").to_string())

// hyper throws an error in case the Content-Length header contains random value with http2
} else if header.to_ascii_lowercase() == "content-length" {
Some(String::from("disabled"))
} else {
None
}
Expand Down

0 comments on commit 63d4f8f

Please sign in to comment.