improvements to suppport mania exchange ssl support

This commit is contained in:
kremsy
2015-11-06 16:21:04 +01:00
parent f8dc43e517
commit 7dadba5a97
3 changed files with 14 additions and 2 deletions

View File

@ -49,7 +49,9 @@ class AsyncHttpRequest {
->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
->set(CURLOPT_RETURNTRANSFER, true) //
->set(CURLOPT_FOLLOWLOCATION, true) // support redirect
->set(CURLOPT_SSL_VERIFYPEER, false);
return $request;
}

View File

@ -47,7 +47,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
/*
* Constants
*/
const VERSION = '0.162';
const VERSION = '0.163';
const API_VERSION = '2013-04-16';
const MIN_DEDIVERSION = '2014-04-02_18_00';
const SCRIPT_TIMEOUT = 10;