diff --git a/core/ManiaControl.php b/core/ManiaControl.php index eb158f05..f1821fa1 100644 --- a/core/ManiaControl.php +++ b/core/ManiaControl.php @@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener, /* * Constants */ - const VERSION = '0.200'; + const VERSION = '0.201'; const API_VERSION = '2013-04-16'; const MIN_DEDIVERSION = '2017-03-23_18_00'; const SCRIPT_TIMEOUT = 10; diff --git a/core/Update/PluginUpdateManager.php b/core/Update/PluginUpdateManager.php index dead77fd..a6613f9f 100644 --- a/core/Update/PluginUpdateManager.php +++ b/core/Update/PluginUpdateManager.php @@ -242,7 +242,6 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis */ private function installPlugin(PluginUpdateData $pluginUpdateData, Player $player = null, $update = false) { $asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $pluginUpdateData->url); - $asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON); $asyncHttpRequest->setCallable(function ($updateFileContent, $error) use ( &$pluginUpdateData, &$player, &$update ) { diff --git a/core/Update/UpdateManager.php b/core/Update/UpdateManager.php index 376c4fc7..185bc265 100644 --- a/core/Update/UpdateManager.php +++ b/core/Update/UpdateManager.php @@ -337,7 +337,6 @@ class UpdateManager implements CallbackListener, CommandListener, TimerListener $updateData = $this->coreUpdateData; $asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $updateData->url); - $asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON); $asyncHttpRequest->setCallable(function ($updateFileContent, $error) use ( $updateData, &$player ) {