[module.cas] PUT is so slow.. timeout (CAS server not responding in consistent time)

This commit is contained in:
xdrm-brackets 2018-03-20 23:51:39 +01:00
parent 100b09c695
commit 46ba44d042
1 changed files with 2 additions and 3 deletions

View File

@ -181,14 +181,13 @@ class casController{
/* (1) Call logout script
---------------------------------------------------------*/
/* (1) Build useful variables */
$service = ($_SERVER['SERVER_NAME'] == 'ptut.com' ) ? 'http' : 'https';
$service .= '://'.$_SERVER['HTTP_HOST'].'/api/v/1.0/cas';
$logout_url = "https://sso.univ-pau.fr/cas/logout?service=$service";
$logout_url = "https://sso.univ-pau.fr/cas/logout";
/* (2) Configure & Prepare CURL */
$ch = \curl_init();
\curl_setopt($ch, CURLOPT_URL, $logout_url);
\curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
/* (3) Execute CURL & Close it */