mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
getRemoteFile에서 연결 설정을 수정할 수 있게 수정
getRemoteResource 자체는 연결 설정이 가능하나 getRemoteFile은 불가능하기에 수정
This commit is contained in:
parent
2b365d739d
commit
5f7c79d9c3
1 changed files with 2 additions and 2 deletions
|
|
@ -615,9 +615,9 @@ class FileHandler
|
||||||
* @param string[] $headers Headers key vaule array.
|
* @param string[] $headers Headers key vaule array.
|
||||||
* @return bool TRUE: success, FALSE: failed
|
* @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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue