Skip to content

Commit

Permalink
feat: Set Content-Type request header to application/json
Browse files Browse the repository at this point in the history
  • Loading branch information
rgriffith committed Apr 23, 2020
1 parent 20dac71 commit 961b0f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/hannonhill/umt/service/RestApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ private static JsonObject performApiRequest(String username, String password, St
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoOutput(true);
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type", "application/json; utf-8");

JsonObject authentication = new JsonObject();
authentication.addProperty("username", username);
Expand Down

0 comments on commit 961b0f7

Please sign in to comment.