viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
Filename | |
---|---|
src/library/FetchUrl.php |
diff --git a/src/library/FetchUrl.php b/src/library/FetchUrl.php index df3a4fd4a..eb69ac21d 100755 --- a/src/library/FetchUrl.php +++ b/src/library/FetchUrl.php @@ -803,7 +803,6 @@ class FetchUrl implements CrawlConstants curl_close($agent_host); } } - $host = ($post_data) ? "POST " . $host : "GET " . $host; if (empty($agents[$host])) { $agents[$host] = curl_init(); } @@ -817,12 +816,12 @@ class FetchUrl implements CrawlConstants curl_setopt($agents[$host], CURLOPT_FOLLOWLOCATION, true); /* curl http2 can cause problems when compiled against an older version of openssl. This seems to mainly affect posting data, so for - now we use HTTP/1.1 to post. + now we use HTTP/1.1. */ - if ($post_data == null) { + /*if ($post_data == null) { curl_setopt($agents[$host], CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); - } + }*/ // these next two lines should probably be modified for better security curl_setopt($agents[$host], CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($agents[$host], CURLOPT_SSL_VERIFYPEER, false);