Commit 87972f6c authored by tufengqi's avatar tufengqi

常量定义修复

parent 499661ec
......@@ -205,8 +205,10 @@ class TCurlClient extends \Thrift\Transport\TTransport
curl_setopt(self::$curlHandle, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt(self::$curlHandle, CURLOPT_FOLLOWLOCATION, true);
curl_setopt(self::$curlHandle, CURLOPT_MAXREDIRS, 1);
$cookie = VERSION_KEY . '=' . VERSION_VALUE_NO_PTEFIX;
curl_setopt(self::$curlHandle, CURLOPT_COOKIE, $cookie);
if (defined('VERSION_KEY') && defined('VERSION_VALUE_NO_PTEFIX')) {
$cookie = VERSION_KEY . '=' . VERSION_VALUE_NO_PTEFIX;
curl_setopt(self::$curlHandle, CURLOPT_COOKIE, $cookie);
}
}
// God, PHP really has some esoteric ways of doing simple things.
$host = $this->host_ . ($this->port_ != 80 ? ':' . $this->port_ : '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment