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

Commit

Permalink
Merge pull request #33 from brettgerry/response-charset
Browse files Browse the repository at this point in the history
Allow for trailing parameters when evaluating ContentType in response
  • Loading branch information
brettgerry committed Nov 14, 2013
2 parents f3c4828 + 922893f commit 5e7a0e0
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 5e7a0e0

Please sign in to comment.