Jan Oris 7 年 前
コミット
adedf5c9dd
3 ファイル変更10 行追加3 行削除
  1. 5 0
      CHANGELOG.md
  2. 1 1
      composer.json
  3. 4 2
      src/Builder.php

+ 5 - 0
CHANGELOG.md

@@ -2,6 +2,11 @@
 
 All Notable changes to `ixudra/curl` will be documented in this file
 
+## 6.12.1 - 2017-08-07
+### Fixed
+- Removed debug code
+- Fixed undefined index bug
+
 ## 6.12.0 - 2017-08-06
 ### Added
 - File uploads by path

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
     "name": "ixudra/curl",
     "description": "Custom PHP Curl library for the Laravel 5 framework - developed by Ixudra",
-    "version": "6.12.0",
+    "version": "6.12.1",
     "keywords": ["Ixudra", "Laravel", "Curl"],
     "homepage": "http://ixudra.be",
     "license": "MIT",

+ 4 - 2
src/Builder.php

@@ -482,6 +482,10 @@ class Builder {
      */
     protected function returnResponse($content, array $responseData = array())
     {
+        if( !$this->packageOptions[ 'responseObject' ] && !$this->packageOptions[ 'responseArray' ] ) {
+            return $content;
+        }
+
         $object = new stdClass();
         $object->content = $content;
         $object->status = $responseData[ 'http_code' ];
@@ -523,8 +527,6 @@ class Builder {
             $this->curlOptions[ 'URL' ] .= $char . 'XDEBUG_SESSION_START='. $this->packageOptions[ 'xDebugSessionName' ];
         }
 
-        dd( $this->curlOptions );
-
         return $results;
     }