finished tests for request class.

This commit is contained in:
Taylor Otwell
2011-10-10 22:55:57 -05:00
parent 0cb81d8585
commit d07714936f
2 changed files with 86 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ class Request {
*/
public static function protocol()
{
return (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
return (isset($_SERVER['HTTPS']) and strtolower($_SERVER['HTTPS']) !== 'off') ? 'https' : 'http';
}
/**