From: Dessalines Date: Sun, 12 Jan 2020 17:52:19 +0000 (-0500) Subject: Cleaning up nodeinfo. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%7Bs.link%7D?a=commitdiff_plain;h=aeec25838a08a731e349755e64279473d0b08045;p=lemmy.git Cleaning up nodeinfo. --- 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(