Skip to content

Commit c884aa5

Browse files
committed
feat: utf8
1 parent 54dad08 commit c884aa5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frameworks/Rust/hyperlane/src/request_middleware.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ pub async fn request(ctx: Context) {
99
.await;
1010
#[cfg(feature = "plaintext")]
1111
{
12-
ctx.set_response_header(CONTENT_TYPE, TEXT_PLAIN).await;
12+
ctx.set_response_header(
13+
CONTENT_TYPE,
14+
ContentType::format_content_type_with_charset(TEXT_PLAIN, UTF8),
15+
)
16+
.await;
1317
}
1418
#[cfg(feature = "fortunes")]
1519
{

0 commit comments

Comments
 (0)