Send normal json accept header for normal json endpoints

This commit is contained in:
asonix
2020-07-10 17:24:47 -05:00
parent 0f95660aec
commit c499b5355c
3 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ impl QueryInstance {
let instance = state
.requests
.fetch::<Instance>(instance_uri.as_str())
.fetch_json::<Instance>(instance_uri.as_str())
.await?;
let description = if instance.description.is_empty() {
+2 -2
View File
@@ -26,7 +26,7 @@ impl QueryNodeinfo {
let well_known = state
.requests
.fetch::<WellKnown>(well_known_uri.as_str())
.fetch_json::<WellKnown>(well_known_uri.as_str())
.await?;
let href = if let Some(link) = well_known.links.into_iter().find(|l| l.rel.is_supported()) {
@@ -35,7 +35,7 @@ impl QueryNodeinfo {
return Ok(());
};
let nodeinfo = state.requests.fetch::<Nodeinfo>(&href).await?;
let nodeinfo = state.requests.fetch_json::<Nodeinfo>(&href).await?;
state
.node_cache