Skip to content

Commit

Permalink
Update ValidationClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere authored Jun 24, 2024
1 parent db7c514 commit 250071a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/twilio/http/ValidationClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ public Response makeRequest(IRequest iRequest) {

HttpMethod method = request.getMethod();
if (method != HttpMethod.GET) {
// TODO: It will be removed after one RC Release.
if (request.getContentType() == null) request.setContentType(EnumConstants.ContentType.FORM_URLENCODED);
if (EnumConstants.ContentType.JSON.getValue().equals(request.getContentType().getValue())) {
HttpEntity entity = new StringEntity(request.getBody(), ContentType.APPLICATION_JSON);
builder.setEntity(entity);
Expand Down

0 comments on commit 250071a

Please sign in to comment.