Skip to content

Commit 27c207e

Browse files
committed
chore: charset is predefined in mime
1 parent d07ea6f commit 27c207e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ async fn get_online_config_servers(
11321132
Ok(content_type) => {
11331133
if content_type.type_() == mime::APPLICATION
11341134
&& content_type.subtype() == mime::JSON
1135-
&& content_type.get_param("charset") == Some(mime::UTF_8)
1135+
&& content_type.get_param(mime::CHARSET) == Some(mime::UTF_8)
11361136
{
11371137
trace!("checked Content-Type: {:?}", h);
11381138
} else {

0 commit comments

Comments
 (0)