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 committed Aug 11, 2017
1 parent 8bbddb0 commit 236bda4
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 @@ -281,7 +281,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 236bda4

Please sign in to comment.