Skip to content

Commit

Permalink
fix(core): compression: missing brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Sep 28, 2022
1 parent 30364e3 commit fe44eb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viz-core/src/middleware/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ impl FromStr for ContentCoding {
Ok(ContentCoding::Deflate)
} else if s.eq_ignore_ascii_case("gzip") {
Ok(ContentCoding::Gzip)
} else if s.eq_ignore_ascii_case("brotli") {
Ok(ContentCoding::Brotli)
} else if s == "*" {
Ok(ContentCoding::Any)
} else {
Expand Down

0 comments on commit fe44eb3

Please sign in to comment.