Skip to content

Commit

Permalink
fix curl reponse is false
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Sep 17, 2021
1 parent 5d9b761 commit 1d6e05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Curl/CurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function request(string $url, $data = null, string $method = 'GET', array
$this->setResponseParsed(true);
} else {
// if CURLOPT_HEADER is TRUE, The raw response data contains headers and body
$this->rawResponse = $response;
$this->rawResponse = (string)$response;
$this->parseResponse(); // parse raw response data
}

Expand Down

0 comments on commit 1d6e05d

Please sign in to comment.