Skip to content

Commit

Permalink
MAGETWO-71532: Fix swagger-ui on instances of Magento running on a no…
Browse files Browse the repository at this point in the history
…n-standard port #10504
  • Loading branch information
ishakhsuvarov authored Aug 23, 2017
2 parents 147b334 + 79f6b10 commit d000df4
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 @@ -303,7 +303,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 d000df4

Please sign in to comment.