Skip to content
Snippets Groups Projects
Commit e8537afd authored by Joas Schilling's avatar Joas Schilling
Browse files

Only overwrite serverHost when in unit tests

The intention of the original commit 12f7cb87
was to fix tests. But cron should always return a valid host not localhost.
parent 6e9905d7
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class OC_Request {
* reverse proxies
*/
public static function serverHost() {
if(OC::$CLI) {
if (OC::$CLI && defined('PHPUNIT_RUN')) {
return 'localhost';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment