Skip to content

Commit bfbd9be

Browse files
aredridelJeroen van Leusden
authored and
Jeroen van Leusden
committed
Fix swagger-ui on instances of Magento running on a non-standard port
1 parent 2e18329 commit bfbd9be

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

+1-1
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)