Skip to content

Commit d2d66d9

Browse files
MAGETWO-84979: [Backport 2.2-develop] Fix swagger-ui on instances of Magento running on a non-standard port #12541
2 parents f0e5f00 + c828e03 commit d2d66d9

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Webapi/Controller

1 file changed

+1
-1
lines changed

app/code/Magento/Webapi/Controller/Rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ protected function processSchemaRequest()
303303
$responseBody = $this->swaggerGenerator->generate(
304304
$requestedServices,
305305
$this->_request->getScheme(),
306-
$this->_request->getHttpHost(),
306+
$this->_request->getHttpHost(false),
307307
$this->_request->getRequestUri()
308308
);
309309
$this->_response->setBody($responseBody)->setHeader('Content-Type', 'application/json');

0 commit comments

Comments
 (0)