Beispiel #1
0
 /**
  * The url protocol string without versioning
  * @return string returns either http or https
  */
 static function Protocol()
 {
     $sp = Server::Variable('SERVER_PROTOCOL');
     $protocol = substr($sp, 0, strpos($sp, '/'));
     if (self::IsHttps() && !String::EndsWith('s', $protocol)) {
         $protocol .= 's';
     }
     return String::ToLower($protocol);
 }