Skip to content

Commit

Permalink
fix getHost() method
Browse files Browse the repository at this point in the history
  • Loading branch information
abass-dev committed Oct 4, 2021
1 parent d675db0 commit 0aee1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diyan.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function getHost()
$config = App::$APP_ROOT."/config/app.json";
$security = json_decode(\file_get_contents($config), true);
$protocole = $security["security"]["http_protocol"];
return $protocole."://".$this->getRequest->getHeader("host")[0];
return $protocole."://".$this->getRequest()->getHeader("host")[0];
}

/**
Expand Down

0 comments on commit 0aee1f7

Please sign in to comment.