mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
getRemoteFile에서 연결 설정을 수정할 수 있게 수정
getRemoteResource 자체는 연결 설정이 가능하나 getRemoteFile은 불가능하기에 수정
This commit is contained in:
parent
aab1c8f1a1
commit
eb388a9eb0
1 changed files with 2 additions and 2 deletions
|
|
@ -615,9 +615,9 @@ class FileHandler
|
|||
* @param string[] $headers Headers key vaule array.
|
||||
* @return bool TRUE: success, FALSE: failed
|
||||
*/
|
||||
function getRemoteFile($url, $target_filename, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array())
|
||||
function getRemoteFile($url, $target_filename, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array(), $request_config = array())
|
||||
{
|
||||
if(!($body = self::getRemoteResource($url, $body, $timeout, $method, $content_type, $headers)))
|
||||
if(!($body = self::getRemoteResource($url, $body, $timeout, $method, $content_type, $headers,$cookies,$post_data,$request_config)))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue