Skip to content

Commit

Permalink
Swap HTTP_HOST with server name. Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-aranda committed Apr 17, 2015
1 parent 578f7f3 commit a13532a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/PHPRocks/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public function domain(){
return self::CLI;
}

$server_name = $this->server->get("SERVER_NAME");
$server_name = $this->server->get('HTTP_HOST');

if( is_null($server_name) ){
$server_name = $this->server->get("HTTP_HOST");
$server_name = $this->server->get('SERVER_NAME');
}

if( is_null($server_name) ){
Expand Down

0 comments on commit a13532a

Please sign in to comment.