From 03c12009416985d55c0072a856b84e6c8e28dfb0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 15 Apr 2019 14:06:50 +0900 Subject: [PATCH] Update twilio.api.php --- helper/twilio.api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper/twilio.api.php b/helper/twilio.api.php index 1878c20..d3cf53f 100644 --- a/helper/twilio.api.php +++ b/helper/twilio.api.php @@ -16,6 +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", ), "data" => array( "Body" => $message, @@ -42,6 +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", ), "data" => array( "Url" => $url,