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

remove whitespaces before saving experiments results

parent 847f28bb
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().replace("\0", ""));
experiment.setResult(results.toString().replaceAll("[\n\t ]",""));
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