Skip to content

Commit

Permalink
Merge pull request #7 from spressoinsights/development
Browse files Browse the repository at this point in the history
Merging latest changes from development
  • Loading branch information
evolquez authored Dec 5, 2023
2 parents 42c3251 + f1bfe10 commit b8ac584
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONException;
Expand Down Expand Up @@ -73,7 +74,7 @@ public Result postData(String rawMessage, String endpointUrl, String fallbackUrl
status = Status.FAILED_UNRECOVERABLE;
}
}
else if (response.equals("1\n")) {
else if (response.equals("")) {
status = Status.SUCCEEDED;
}
}
Expand Down Expand Up @@ -128,7 +129,7 @@ private Result performRequest(String endpointUrl, List<ContentValues> nameValueP
final URL url = new URL(endpointUrl);
connection = (HttpURLConnection) url.openConnection();
if (null != nameValuePairs) {
byte[] rawDataByte = rawData.getBytes();
byte[] rawDataByte = rawData.getBytes(StandardCharsets.UTF_8);
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
Expand Down

0 comments on commit b8ac584

Please sign in to comment.