fixed cntent types
This commit is contained in:
parent
389ff7925c
commit
868c2d524b
@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
|
|||||||
/*
|
/*
|
||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const VERSION = '0.200';
|
const VERSION = '0.201';
|
||||||
const API_VERSION = '2013-04-16';
|
const API_VERSION = '2013-04-16';
|
||||||
const MIN_DEDIVERSION = '2017-03-23_18_00';
|
const MIN_DEDIVERSION = '2017-03-23_18_00';
|
||||||
const SCRIPT_TIMEOUT = 10;
|
const SCRIPT_TIMEOUT = 10;
|
||||||
|
@ -242,7 +242,6 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
*/
|
*/
|
||||||
private function installPlugin(PluginUpdateData $pluginUpdateData, Player $player = null, $update = false) {
|
private function installPlugin(PluginUpdateData $pluginUpdateData, Player $player = null, $update = false) {
|
||||||
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $pluginUpdateData->url);
|
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $pluginUpdateData->url);
|
||||||
$asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON);
|
|
||||||
$asyncHttpRequest->setCallable(function ($updateFileContent, $error) use (
|
$asyncHttpRequest->setCallable(function ($updateFileContent, $error) use (
|
||||||
&$pluginUpdateData, &$player, &$update
|
&$pluginUpdateData, &$player, &$update
|
||||||
) {
|
) {
|
||||||
|
@ -337,7 +337,6 @@ class UpdateManager implements CallbackListener, CommandListener, TimerListener
|
|||||||
$updateData = $this->coreUpdateData;
|
$updateData = $this->coreUpdateData;
|
||||||
|
|
||||||
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $updateData->url);
|
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, $updateData->url);
|
||||||
$asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON);
|
|
||||||
$asyncHttpRequest->setCallable(function ($updateFileContent, $error) use (
|
$asyncHttpRequest->setCallable(function ($updateFileContent, $error) use (
|
||||||
$updateData, &$player
|
$updateData, &$player
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user