From 922893ffbbdb0c8168a718db152a10f71f07fcf3 Mon Sep 17 00:00:00 2001 From: Brett Gerry Date: Tue, 12 Nov 2013 17:41:27 -0800 Subject: [PATCH] Allow for trailing parameters when evaluating ContentType in response --- src/classes/TwilioRestResponse.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/TwilioRestResponse.cls b/src/classes/TwilioRestResponse.cls index f83a095..1271e14 100644 --- a/src/classes/TwilioRestResponse.cls +++ b/src/classes/TwilioRestResponse.cls @@ -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')); } /**