From 4b93d4559303b16da8520e52436687cd5f847b64 Mon Sep 17 00:00:00 2001 From: ubm Date: Sat, 1 Aug 2020 14:14:47 +0200 Subject: [PATCH] Update chat.admin.php added extra_headers - as this is needed for the async file protocoll with mania exchange. (added also servername and manialink , maybe the guys can make use of it as in tm2020 serverlogin does not help much at the moment.) --- plugins/chat.admin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/chat.admin.php b/plugins/chat.admin.php index 041e953..3d8bcb2 100644 --- a/plugins/chat.admin.php +++ b/plugins/chat.admin.php @@ -4095,6 +4095,9 @@ private function admin_add ($login, $command, $arglist, $logtitle, $chattitle) { 'url' => $remotelink . $trkid, 'sync' => true, 'user_agent' => USER_AGENT, + 'extra_headers'=> "X-ManiaPlanet-ServerLogin:" .$aseco->server->login."\r\n". + "X-ManiaPlanet-ServerName:" .$aseco->server->name."\r\n". + "X-ManiaPlanet-Link:" .$aseco->server->link."\r\n", ); $request = $aseco->webrequest->GET($params); if (isset($request->response['header']['code']) && $request->response['header']['code'] === 200) {