Cleaning up nodeinfo.

pull/418/head
Dessalines 2020-01-12 12:52:19 -05:00
parent 9755654734
commit 34ddd62fd1
1 changed files with 1 additions and 3 deletions

View 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(