From 34ddd62fd19f2e202844c354dbbdfb025baeb6ba Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 12 Jan 2020 12:52:19 -0500 Subject: [PATCH] Cleaning up nodeinfo. --- server/src/routes/nodeinfo.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/routes/nodeinfo.rs b/server/src/routes/nodeinfo.rs index 6ab540f9..b702c608 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(