Skip to content

Commit

Permalink
Revert "fix: graph-node reqwest response json escaping"
Browse files Browse the repository at this point in the history
This reverts commit 1890501.
  • Loading branch information
aasseman committed Aug 16, 2023
1 parent a6be6d8 commit 4721b1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions service/src/graph_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl GraphNodeInstance {
.map_or(false, |v| v == "true");

Ok(UnattestedQueryResult {
graphql_response: response.json().await?,
graphql_response: response.text().await?,
attestable,
})
}
Expand All @@ -86,7 +86,8 @@ impl GraphNodeInstance {

let response = request.send().await?;

let response_text = response.json().await?;
// actually parse the JSON for the graphQL schema
let response_text = response.text().await?;
Ok(UnattestedQueryResult {
graphql_response: response_text,
attestable: false,
Expand Down

0 comments on commit 4721b1e

Please sign in to comment.