Skip to content

Commit

Permalink
replace end line for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Jul 6, 2020
1 parent 9b9a3de commit 57d2ee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vit-servicing-station-tests/src/common/clients/graphql.rs
Expand Up @@ -25,7 +25,9 @@ impl GraphqlClient {
let proposal = ProposalById { id };
let data = proposal.render()?;
println!("Request: {}", data);
let query_result = self.rest_client.post("graphql", data.replace("\r\n", ""))?;
let query_result = self
.rest_client
.post("graphql", data.replace("\r\n", "").replace("\n", ""))?;
let proposal = query_result["data"]["proposal"].clone();
serde_json::from_value(proposal).map_err(GraphQlClientError::CannotDeserialize)
}
Expand Down

0 comments on commit 57d2ee8

Please sign in to comment.