As @maxkremer pointed out, there was a potential bug to set whole request contents to Content-Length property instead of the length.
Shouldnt this be String.valueOf(body).length() ? You're essentially putting all of the content in the content-length header
However, for good or bad, I found it does not have a impact for current users because HttpURLConnection.setRequestProperty() doesn't allow us to set Content-Length explicitly.
The wrong value (i.e. String.valueOf(body)) was just ignored. Of course, any other values are also ignored.
@maxkremer Thanks for your report. This is a terrible implementation. I fixed this bug and published v0.0.4 to Maven Central Repository. However, it is better for you to use the official Intercom v2 API library.
As @maxkremer pointed out, there was a potential bug to set whole request contents to Content-Length property instead of the length.
However, for good or bad, I found it does not have a impact for current users because HttpURLConnection.setRequestProperty() doesn't allow us to set Content-Length explicitly.
The wrong value (i.e. String.valueOf(body)) was just ignored. Of course, any other values are also ignored.