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:
parent
6e9905d7cf
commit
e8537afd60
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class OC_Request {
|
|||
* reverse proxies
|
||||
*/
|
||||
public static function serverHost() {
|
||||
if(OC::$CLI) {
|
||||
if (OC::$CLI && defined('PHPUNIT_RUN')) {
|
||||
return 'localhost';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue