Permalink
Browse files

Merge pull request #13 from hmanprod/patch-1

Update Services/Soundcloud.php
  • Loading branch information...
2 parents 664a9ef + 3aaeb49 commit 8070975e6febcf35715b96f52439d92e810b6993 Anton Lindqvist committed Jan 16, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 Services/Soundcloud.php
View
@@ -924,7 +924,10 @@ protected function _request($url, $curlOptions = array())
$this->_lastHttpResponseHeaders = $this->_parseHttpHeaders(
substr($data, 0, $info['header_size'])
);
- $this->_lastHttpResponseBody = substr($data, $info['header_size']);
+ if(array_key_exists(CURLOPT_HEADER, $options) && !$options[CURLOPT_HEADER])
+ $this->_lastHttpResponseBody = $data;
+ else
+ $this->_lastHttpResponseBody = substr($data, $info['header_size']);
$this->_lastHttpResponseCode = $info['http_code'];
if ($this->_validResponseCode($this->_lastHttpResponseCode)) {

0 comments on commit 8070975

Please sign in to comment.