Skip to content

Commit 236bda4

Browse files
committed
Fix swagger-ui on instances of Magento running on a non-standard port
1 parent 8bbddb0 commit 236bda4

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

0 commit comments

Comments
 (0)