Skip to content
Snippets Groups Projects
Commit 743a61fa authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with url in WS

parent f08865b9
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,11 @@ class Maarch_SOAP_DISCO_Server extends SOAP_DISCO_Server
$rootUri = self::_getRootUri();
$protocol = (array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == 'on')
? 'https://' : 'http://' ;
return $protocol . $this->host . $rootUri . '/' . basename(Url::scriptName());
$lastChar = strlen($rootUri) - 1;
if ($rootUri[$lastChar] != '/') {
$rootUri .= '/';
}
return $protocol . $this->host . $rootUri . basename(Url::scriptName());
}
private static function _getRootUri()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment