Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Fix a request problem results from openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeBottle committed Jun 17, 2021
1 parent 614f287 commit bb1e5d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ function request($u, $q, $method = 'POST', $head = array('Content-type:applicati
'header' => $head,
'timeout' => 15 * 60, // 超时时间单位:s
'content' => $rqcontent
),
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
)
);
smartCache();/*智能缓存*/
Expand Down

0 comments on commit bb1e5d1

Please sign in to comment.