Skip to content

Commit

Permalink
Merge pull request #18 from luoxiaojun1992/feature-syntax-bugfix
Browse files Browse the repository at this point in the history
syntax bugfix
  • Loading branch information
yaozongyou authored Jul 7, 2017
2 parents 175e100 + af80028 commit 07ace9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/qcloud/cos/LibcurlWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ private function resetCurl($handle) {
if (function_exists('curl_reset')) {
curl_reset($handle);
} else {
curl_setopt($handler, CURLOPT_URL, '');
curl_setopt($handler, CURLOPT_HTTPHEADER, array());
curl_setopt($handler, CURLOPT_POSTFIELDS, array());
curl_setopt($handler, CURLOPT_TIMEOUT, 0);
curl_setopt($handler, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($handler, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($handle, CURLOPT_URL, '');
curl_setopt($handle, CURLOPT_HTTPHEADER, array());
curl_setopt($handle, CURLOPT_POSTFIELDS, array());
curl_setopt($handle, CURLOPT_TIMEOUT, 0);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, 0);
}
}

Expand Down

0 comments on commit 07ace9a

Please sign in to comment.