diff options
author | tof <> | 2008-05-16 12:59:42 +0000 |
---|---|---|
committer | tof <> | 2008-05-16 12:59:42 +0000 |
commit | f313138c9545d567d411e80aead77eb03c83ae25 (patch) | |
tree | ddd5a102a0f2da51fb9ed717b50904aaedcfddd8 /framework/Web/THttpRequest.php | |
parent | aaea27e8104ffc486d19ed0d9c88405ca1fc32cd (diff) |
Fixed #841
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -345,6 +345,14 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar } /** + * @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) */ public function getRequestUri() |