From a87c338b7024d38e34a84802072736979650b83e Mon Sep 17 00:00:00 2001 From: QxQ Date: Wed, 19 Jun 2019 15:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=8F=E5=A5=87=E5=82=B3?= =?UTF-8?q?=E9=80=81=E9=82=8F=E8=BC=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Cars_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Cars_model.php b/models/Cars_model.php index 7a229b2..5338deb 100644 --- a/models/Cars_model.php +++ b/models/Cars_model.php @@ -1742,7 +1742,7 @@ class Cars_model extends CI_Model curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,5); curl_setopt($ch, CURLOPT_TIMEOUT, 5); //timeout in seconds curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array("data"=>$json))); - curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); + curl_setopt($ch, CURLOPT_HTTPHEADER, false); $result = curl_exec($ch); trigger_error(curl_error($ch)); curl_close($ch);