File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
frameworks/Rust/hyperlane/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ pub async fn request(controller_data: ControllerData) {
44 let _ = controller_data
55 . set_response_header ( CONNECTION , CONNECTION_KEEP_ALIVE )
66 . await
7- . set_response_header ( CONTENT_TYPE , APPLICATION_JSON )
7+ . set_response_header ( CONTENT_TYPE , content_type_charset ( APPLICATION_JSON , UTF8 ) )
88 . await
99 . set_response_header ( SERVER , HYPERLANE )
1010 . await
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub async fn json(controller_data: ControllerData) {
1111
1212pub async fn plaintext ( controller_data : ControllerData ) {
1313 let _ = controller_data
14- . set_response_header ( CONTENT_TYPE , TEXT_PLAIN )
14+ . set_response_header ( CONTENT_TYPE , content_type_charset ( TEXT_PLAIN , UTF8 ) )
1515 . await
1616 . set_response_body ( RESPONSEDATA )
1717 . await ;
You can’t perform that action at this time.
0 commit comments