Skip to content

Commit

Permalink
Fix swagger-ui on instances of Magento running on a non-standard port
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel authored and Jeroen van Leusden committed Dec 7, 2017
1 parent 2e18329 commit bfbd9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Webapi/Controller/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected function processSchemaRequest()
$responseBody = $this->swaggerGenerator->generate(
$requestedServices,
$this->_request->getScheme(),
$this->_request->getHttpHost(),
$this->_request->getHttpHost(false),
$this->_request->getRequestUri()
);
$this->_response->setBody($responseBody)->setHeader('Content-Type', 'application/json');
Expand Down

0 comments on commit bfbd9be

Please sign in to comment.