Update CHttpRequest.php

Improved fix in 2cc4a81713bfceea8ec32f7bd95ae793a71c8209