diff --git a/src/main/java/com/github/oohira/intercom/Intercom.java b/src/main/java/com/github/oohira/intercom/Intercom.java index 1bf593d..5719997 100644 --- a/src/main/java/com/github/oohira/intercom/Intercom.java +++ b/src/main/java/com/github/oohira/intercom/Intercom.java @@ -534,7 +534,7 @@ private String send(final String url, final String method, final String body) th if (method.equals("POST") || method.equals("PUT") || method.equals("DELETE")) { http.setDoOutput(true); http.setRequestProperty("Content-Type", "application/json"); - http.setRequestProperty("Content-Length", String.valueOf(body)); + //NOTE: Content-Length is automatically set by Java HTTP library. } http.connect();