Skip to content
Snippets Groups Projects
Commit d2d66d9d authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov Committed by GitHub
Browse files

MAGETWO-84979: [Backport 2.2-develop] Fix swagger-ui on instances of Magento...

MAGETWO-84979: [Backport 2.2-develop] Fix swagger-ui on instances of Magento running on a non-standard port #12541
parents f0e5f002 c828e036
Branches
Tags
No related merge requests found
......@@ -303,7 +303,7 @@ class Rest implements \Magento\Framework\App\FrontControllerInterface
$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');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment