diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-07-07 14:39:06 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-07-07 15:08:45 +0200 |
commit | e8537afd60d2c5d37e48a99aca9e72394cc044dd (patch) | |
tree | cb8214a32f688ad4360ca45b3626883d1cb0445c | |
parent | 6e9905d7cfdde1f94f1bb6f61d7db01c5b419265 (diff) | |
download | nextcloud-server-e8537afd60d2c5d37e48a99aca9e72394cc044dd.tar.gz nextcloud-server-e8537afd60d2c5d37e48a99aca9e72394cc044dd.zip |
Only overwrite serverHost when in unit tests
The intention of the original commit 12f7cb87679453fa96c796df857b7e7193d4ee09
was to fix tests. But cron should always return a valid host not localhost.
-rwxr-xr-x | lib/private/request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/request.php b/lib/private/request.php index 619eae3e9b5..5fd5b3a7197 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -95,7 +95,7 @@ class OC_Request { * reverse proxies */ public static function serverHost() { - if(OC::$CLI) { + if (OC::$CLI && defined('PHPUNIT_RUN')) { return 'localhost'; } |