Skip to content

Commit

Permalink
fix big5 charset parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Nov 24, 2021
1 parent 9bdd334 commit 3e6e977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actix-http/src/header/shared/charset.rs
Expand Up @@ -88,7 +88,7 @@ impl Charset {
Iso_8859_8_E => "ISO-8859-8-E",
Iso_8859_8_I => "ISO-8859-8-I",
Gb2312 => "GB2312",
Big5 => "big5",
Big5 => "Big5",
Koi8_R => "KOI8-R",
Ext(ref s) => s,
}
Expand Down Expand Up @@ -128,7 +128,7 @@ impl FromStr for Charset {
"ISO-8859-8-E" => Iso_8859_8_E,
"ISO-8859-8-I" => Iso_8859_8_I,
"GB2312" => Gb2312,
"big5" => Big5,
"BIG5" => Big5,
"KOI8-R" => Koi8_R,
s => Ext(s.to_owned()),
})
Expand Down

0 comments on commit 3e6e977

Please sign in to comment.