mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-09-03 07:17:43 +08:00
https ignore server pert check.
This commit is contained in:
@@ -88,6 +88,9 @@ bool HTTPRequest::initWithUrl(const char *url, int method)
|
||||
curl_easy_setopt(m_curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
|
||||
curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||
curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYHOST, 0);
|
||||
|
||||
switch (method) {
|
||||
case kCCHTTPRequestMethodGET:
|
||||
curl_easy_setopt(m_curl, CURLOPT_CUSTOMREQUEST, "GET");
|
||||
|
||||
Reference in New Issue
Block a user