Skip to content

Commit f6f3516

Browse files
MAGETWO-85180: [Backport 2.1-develop] Fix swagger-ui on instances of Magento running on a non-standard port #12579
2 parents 90074e7 + ed40d39 commit f6f3516

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
@@ -280,7 +280,7 @@ protected function processSchemaRequest()
280280
$responseBody = $this->swaggerGenerator->generate(
281281
$requestedServices,
282282
$this->_request->getScheme(),
283-
$this->_request->getHttpHost(),
283+
$this->_request->getHttpHost(false),
284284
$this->_request->getRequestUri()
285285
);
286286
$this->_response->setBody($responseBody)->setHeader('Content-Type', 'application/json');

0 commit comments

Comments
 (0)