async filereader removed old test method
This commit is contained in:
parent
e2c458c52d
commit
9741027a71
@ -39,16 +39,6 @@ class AsynchronousFileReader implements UsageInformationAble {
|
||||
$this->maniaControl = $maniaControl;
|
||||
}
|
||||
|
||||
public static function newRequestTest($url) {
|
||||
$request = new Request($url);
|
||||
$request->getOptions()->set(CURLOPT_TIMEOUT, 60)->set(CURLOPT_HEADER, false)// don't display response header
|
||||
->set(CURLOPT_CRLF, true)// linux line feed
|
||||
->set(CURLOPT_ENCODING, '')// accept encoding
|
||||
->set(CURLOPT_USERAGENT, 'ManiaControl v' . ManiaControl::VERSION)// user-agent
|
||||
->set(CURLOPT_RETURNTRANSFER, true); // return instead of output content
|
||||
return $request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append available Data of active Requests
|
||||
*/
|
||||
|
@ -169,7 +169,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
throw new \Exception("No Dedimania Code Specified, check the settings!");
|
||||
}
|
||||
|
||||
$this->request = AsynchronousFileReader::newRequestTest(self::DEDIMANIA_URL);
|
||||
//$this->request = AsynchronousFileReader::newRequestTest(self::DEDIMANIA_URL);
|
||||
|
||||
|
||||
$this->dedimaniaData = new DedimaniaData($serverInfo->login, $dedimaniaCode, $serverInfo->path, $packMask, $serverVersion);
|
||||
|
Loading…
Reference in New Issue
Block a user