Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Allow for trailing parameters when evaluating ContentType in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Gerry committed Nov 13, 2013
1 parent f3c4828 commit 922893f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/TwilioRestResponse.cls
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public class TwilioRestResponse {
* @return true if this looks like a JSON response
*/
public boolean isJson() {
return (this.contentType!=null && this.contentType.equalsIgnoreCase('application/json'));
return (this.contentType!=null && this.contentType.startsWithIgnoreCase('application/json'));
}

/**
Expand Down

0 comments on commit 922893f

Please sign in to comment.