diff --git a/src/ApiEndpoint.php b/src/ApiEndpoint.php index 478c88d..c38c6f5 100644 --- a/src/ApiEndpoint.php +++ b/src/ApiEndpoint.php @@ -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(), '/'); }