Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
elimentz committed Aug 7, 2017
1 parent 396812f commit adedf5c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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",
Expand Down
6 changes: 4 additions & 2 deletions src/Builder.php
Expand Up @@ -482,6 +482,10 @@ protected function send()
*/
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' ];
Expand Down Expand Up @@ -523,8 +527,6 @@ protected function forgeOptions()
$this->curlOptions[ 'URL' ] .= $char . 'XDEBUG_SESSION_START='. $this->packageOptions[ 'xDebugSessionName' ];
}

dd( $this->curlOptions );

return $results;
}

Expand Down

0 comments on commit adedf5c

Please sign in to comment.