Jan Oris 9 年之前
父节点
当前提交
8ca54d1568
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 1 1
      composer.json
  2. 0 5
      src/Ixudra/Curl/Builder.php

+ 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.1.0",
+    "version": "6.1.1",
     "keywords": ["Ixudra", "Laravel", "Curl"],
     "homepage": "http://ixudra.be",
     "license": "MIT",

+ 0 - 5
src/Ixudra/Curl/Builder.php

@@ -250,11 +250,6 @@ class Builder {
         $response = curl_exec( $this->curlObject );
         curl_close( $this->curlObject );
 
-        // Decode the request if necessary
-        if( $this->packageOptions[ 'asJson' ] ) {
-            $response = json_decode( $response, $this->packageOptions[ 'returnAsArray' ] );
-        }
-
         if( $this->packageOptions[ 'saveFile' ] ) {
             // Save to file if a filename was specified
             $file = fopen($this->packageOptions[ 'saveFile' ], 'w');