Only overwrite serverHost when in unit tests

The intention of the original commit 12f7cb8767
was to fix tests. But cron should always return a valid host not localhost.
This commit is contained in:
Joas Schilling 2014-07-07 14:39:06 +02:00
parent 6e9905d7cf
commit e8537afd60

View file

@ -95,7 +95,7 @@ class OC_Request {
* reverse proxies
*/
public static function serverHost() {
if(OC::$CLI) {
if (OC::$CLI && defined('PHPUNIT_RUN')) {
return 'localhost';
}