Skip to content

Commit 11018aa

Browse files
yangzong18huiguangjun
authored andcommitted
Modify the problem of swoole
1 parent 214abee commit 11018aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OSS/Http/RequestCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ public function process_response($curl_handle = null, $response = null)
789789
}
790790

791791
// As long as this came back as a valid resource or CurlHandle instance...
792-
if (is_resource($curl_handle) || (is_object($curl_handle) && get_class($curl_handle) === 'CurlHandle')) {
792+
if (is_resource($curl_handle) || (is_object($curl_handle) && in_array(get_class($curl_handle),array('CurlHandle','Swoole\Curl\Handler', 'Swoole\Coroutine\Curl\Handle'),true))) {
793793
// Determine what's what.
794794
$header_size = curl_getinfo($curl_handle, CURLINFO_HEADER_SIZE);
795795
$this->response_headers = substr($this->response, 0, $header_size);

0 commit comments

Comments
 (0)