diff --git a/core/Files/AsynchronousFileReader.php b/core/Files/AsynchronousFileReader.php index 712077df..1e7ba86e 100644 --- a/core/Files/AsynchronousFileReader.php +++ b/core/Files/AsynchronousFileReader.php @@ -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 */ diff --git a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php index 5af18ddd..73f67163 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaPlugin.php +++ b/plugins/MCTeam/Dedimania/DedimaniaPlugin.php @@ -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);