Skip to content

Commit

Permalink
Correct url builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 15, 2016
1 parent 3c9b322 commit 9cbb20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function _buildUrl($path)
{
$schemas = $this->_definition->getSchemas();
rsort($schemas);
$this->_baseUrl = reset($schemas);
$this->_baseUrl = reset($schemas) . '://';
$this->_baseUrl .= $this->_definition->getHost();
$this->_baseUrl .= '/' . ltrim($this->_definition->getBasePath(), '/');
}
Expand Down

0 comments on commit 9cbb20a

Please sign in to comment.