From aeec25838a08a731e349755e64279473d0b08045 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( -- 2.44.1