mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Merge pull request #1545 from kijin/fix/filehandler-regression
FileHandler에서 존재하지 않는 메소드 호출 수정
This commit is contained in:
commit
227111fa05
1 changed files with 9 additions and 2 deletions
|
|
@ -527,7 +527,6 @@ class FileHandler
|
|||
{
|
||||
$oRequest = new HTTP_Request(__PROXY_SERVER__);
|
||||
$oRequest->setMethod('POST');
|
||||
$oRequest->_timeout = $timeout;
|
||||
$oRequest->addPostData('arg', serialize(array('Destination' => $url, 'method' => $method, 'body' => $body, 'content_type' => $content_type, "headers" => $headers, "post_data" => $post_data)));
|
||||
}
|
||||
else
|
||||
|
|
@ -571,7 +570,15 @@ class FileHandler
|
|||
if($body)
|
||||
$oRequest->setBody($body);
|
||||
}
|
||||
$oRequest->setConfig('timeout', $timeout);
|
||||
|
||||
if(method_exists($oRequest, 'setConfig'))
|
||||
{
|
||||
$oRequest->setConfig('timeout', $timeout);
|
||||
}
|
||||
elseif(property_exists($oRequest, '_timeout'))
|
||||
{
|
||||
$oRequest->_timeout = $timeout;
|
||||
}
|
||||
|
||||
$oResponse = $oRequest->sendRequest();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue