From f313138c9545d567d411e80aead77eb03c83ae25 Mon Sep 17 00:00:00 2001 From: tof <> Date: Fri, 16 May 2008 12:59:42 +0000 Subject: Fixed #841 --- framework/Web/THttpRequest.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/Web/THttpRequest.php') diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index aec71262..23ab26ec 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -344,6 +344,14 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar return isset($_SERVER['QUERY_STRING'])?$_SERVER['QUERY_STRING']:''; } + /** + * @return string the requested http procolol. Blank string if not defined. + */ + public function getHttpProtocolVersion () + { + return isset($_SERVER['SERVER_PROTOCOL'])?$_SERVER['SERVER_PROTOCOL']:''; + } + /** * @return string part of that request URL after the host info (including pathinfo and query string) */ -- cgit v1.2.3