From 6a385979d7be1be163aa796dc0d97b7bc7a676ae Mon Sep 17 00:00:00 2001 From: 713uk13m <713uk13m@713uk13ms-MacBook-Pro.local> Date: Sun, 16 Dec 2018 00:23:46 +0700 Subject: [PATCH] add requests --- src/Interfaces/ProjectInterface.php | 4 ++-- src/MyRequests.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Interfaces/ProjectInterface.php b/src/Interfaces/ProjectInterface.php index e3c4344..e8d0952 100644 --- a/src/Interfaces/ProjectInterface.php +++ b/src/Interfaces/ProjectInterface.php @@ -18,8 +18,8 @@ */ interface ProjectInterface { - const VERSION = '0.1.3.16'; - const LAST_MODIFIED = '2018-12-15'; + const VERSION = '0.1.3.17'; + const LAST_MODIFIED = '2018-12-16'; const MIN_PHP_VERSION = '5.3'; const GET = 'GET'; const HEAD = 'HEAD'; diff --git a/src/MyRequests.php b/src/MyRequests.php index 6378a1f..029853b 100644 --- a/src/MyRequests.php +++ b/src/MyRequests.php @@ -754,7 +754,7 @@ public function curlRequest($url = '', $data = [], $method = 'GET') ]; $this->debug->info(__FUNCTION__, 'input Params: ', $inputParams); $method = strtoupper($method); - if (!class_exists('Requests')) { + if (!class_exists('Curl\Curl')) { $this->debug->critical(__FUNCTION__, 'class \Curl\Curl() is not exits'); $response = NULL; } else {