Skip to content

Commit bd250df

Browse files
committed
fix test error for curl download
1 parent f53fdb4 commit bd250df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/CurlClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ public function request(string $url, $data = null, string $method = 'GET', array
334334

335335
// if \CURLOPT_HEADER is FALSE, only return body. no headers data
336336
if (false === $this->getCurlOption(CURLOPT_HEADER, false)) {
337-
$this->responseBody = $response;
337+
$this->responseBody = (string)$response;
338338
$this->setResponseParsed(true);
339339
} else {
340340
// if CURLOPT_HEADER is TRUE, The raw response data contains headers and body
341-
$this->rawResponse = $response;
341+
$this->rawResponse = (string)$response;
342342
$this->parseResponse(); // parse raw response data
343343
}
344344

0 commit comments

Comments
 (0)