]> Untitled Git - lemmy.git/commitdiff
Cleaning up nodeinfo.
authorDessalines <tyhou13@gmx.com>
Sun, 12 Jan 2020 17:52:19 +0000 (12:52 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 12 Jan 2020 17:52:19 +0000 (12:52 -0500)
server/src/routes/nodeinfo.rs

index 6ab540f9e459e16b4c147949a3e278bbc394cb35..b702c6086fe26a3e8d36c94260309433361d840f 100644 (file)
@@ -22,9 +22,7 @@ async fn node_info_well_known() -> HttpResponse<Body> {
     }
   });
 
-  HttpResponse::Ok()
-    .content_type("application/json")
-    .body(json.to_string())
+  HttpResponse::Ok().json(json.to_string())
 }
 
 async fn node_info(