From 868c2d524bcfd38b10fae3c2e6187d821846f846 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 30 Mar 2017 20:38:03 +0200 Subject: [PATCH] fixed cntent types --- core/ManiaControl.php | 2 +- core/Update/PluginUpdateManager.php | 1 - core/Update/UpdateManager.php | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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 ) {