philsturgeon/codeigniter-restserver — pull request #86 by linuxjuggler (2012-01-31 13:21:31+00:00)
Title: fix a problem with apache_request_header function and php as CGI

since the apache_request_headers function will work only if php was installed as apache mod ( http://php.net/manual/en/function.apache-request-headers.php check the change log ), i had a problem on the live server
so i have change it a bit to check if its exist or not ..
if its not found use the getenv() function instead ..