diff --git a/server/src/routes/nodeinfo.rs b/server/src/routes/nodeinfo.rs index 6ab540f..b702c60 100644 --- a/server/src/routes/nodeinfo.rs +++ b/server/src/routes/nodeinfo.rs @@ -22,9 +22,7 @@ async fn node_info_well_known() -> HttpResponse { } }); - HttpResponse::Ok() - .content_type("application/json") - .body(json.to_string()) + HttpResponse::Ok().json(json.to_string()) } async fn node_info(