Skip to content

Commit

Permalink
fix: set json content type
Browse files Browse the repository at this point in the history
  • Loading branch information
joelkoen committed May 22, 2024
1 parent aed1bdb commit 3d132a1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private Location request(String request) {
HttpURLConnection conn = null;
try {
conn = (HttpURLConnection) new URL(SERVICE_URL).openConnection();
conn.setRequestProperty("content-type", "application/json");
conn.setDoOutput(true);
conn.setDoInput(true);
Log.d(TAG, "request: " + request);
Expand Down

0 comments on commit 3d132a1

Please sign in to comment.