Skip to content

Commit

Permalink
Merge pull request #25 from nguyenanhung/develop
Browse files Browse the repository at this point in the history
Update class Requests
  • Loading branch information
nguyenanhung authored Dec 19, 2018
2 parents e5ebc84 + d720b17 commit c5c05bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Interfaces/ProjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
interface ProjectInterface
{
const VERSION = '1.0';
const LAST_MODIFIED = '2018-12-18';
const VERSION = '1.0.1';
const LAST_MODIFIED = '2018-12-19';
const MIN_PHP_VERSION = '5.3';
const GET = 'GET';
const HEAD = 'HEAD';
Expand Down
4 changes: 2 additions & 2 deletions src/MyRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ public function curlRequest($url = '', $data = [], $method = 'GET')
$this->http_code = $curl->httpStatusCode;
$this->http_message = $curl->httpErrorMessage;
$this->requests_header = $curl->requestHeaders;
$this->response_header = $curl->responseHeaders;
$this->response_header = $curl->rawResponseHeaders;
// Debug
$this->debug->debug(__FUNCTION__, 'Full Data Curl Message and Http Message: ', $error_code);
if ($this->errorResponseIsData === TRUE) {
Expand All @@ -858,7 +858,7 @@ public function curlRequest($url = '', $data = [], $method = 'GET')
$this->debug->debug(__FUNCTION__, 'Return Error Response is Message: ' . $response);
}
} else {
$response = $curl->response;
$response = $curl->rawResponse;
$this->debug->debug(__FUNCTION__, 'Response from Request, no Error: ' . $response);
}
// Close Request
Expand Down

0 comments on commit c5c05bf

Please sign in to comment.