diff --git a/helper/twilio.api.php b/helper/twilio.api.php index d3cf53f..24f3703 100644 --- a/helper/twilio.api.php +++ b/helper/twilio.api.php @@ -16,7 +16,7 @@ if(!check_function_exists("twilio_send_message")) { $response = get_web_json($request_url, "post", array( "headers" = array( "Authentication" => array("Basic", $sid, $token), - "Content-Type" => "x-www-form-urlencoded", + "Content-Type" => "application/x-www-form-urlencoded", ), "data" => array( "Body" => $message, @@ -43,7 +43,7 @@ if(!check_function_exists("twilio_send_voice")) { $response = get_web_json($request_url, "post", array( "headers" = array( "Authentication" => array("Basic", $sid, $token), - "Content-Type" => "x-www-form-urlencoded", + "Content-Type" => "application/x-www-form-urlencoded", ), "data" => array( "Url" => $url,