diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2017-01-18 10:38:03 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2017-01-18 10:38:03 +0100 |
commit | 7428a0093d7b2a686b804de904acfab6cdbd758e (patch) | |
tree | 061d019faadfefa794cdac115134175640713148 /framework/Web/THttpRequest.php | |
parent | 0865475b69a8cb69511c2eaf30b36b2a0d4789d8 (diff) |
Fix #610 (prado-3.3)
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 926cfa46..724c6410 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -534,6 +534,15 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar } /** + * @return string server software + * @since 3.3.3 + */ + public function getServerSoftware() + { + return isset($_SERVER['SERVER_SOFTWARE'])?$_SERVER['SERVER_SOFTWARE']:null; + } + + /** * @return integer server port number */ public function getServerPort() @@ -1403,4 +1412,3 @@ class THttpRequestUrlFormat extends TEnumerable const Path='Path'; const HiddenPath='HiddenPath'; } - |