Skip to content
Snippets Groups Projects
Commit 85bf234e authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

fix experiment json

parent c6b68ab9
No related branches found
No related tags found
No related merge requests found
......@@ -342,7 +342,7 @@ public class ExperimentApi {
private static void executeExperiment(String url, String query, Experiment experiment) throws IOException {
StringBuilder results = new StringBuilder();
int code = HTTPUtil.sendPost(url, query, results);
experiment.setResult(results.toString().replaceAll("[\n\t ]",""));
experiment.setResult(results.toString());
experiment.setHasError(code >= 400);
experiment.setHasServerError(code >= 500);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment