diff --git a/src/Api.php b/src/Api.php index f70e63f..f8ab2c4 100644 --- a/src/Api.php +++ b/src/Api.php @@ -79,7 +79,7 @@ public function __construct ( Container $app, Registrar $router, Request $reques $this->swagger = Swagger::create () ->setInfo ( $this->buildInfo () ) - ->setHost ( $request->getHost () ) + ->setHost ( $request->getHttpHost () ) ->setBasePath ( '/' . config ( 'api.prefix', 'api' ) ) ->addScheme ( config ( 'api.scheme', $request->getScheme () ) ) ->setConsumes ( [ 'application/json' ] ) @@ -332,4 +332,4 @@ public function getCachedApiPath () return $this->app->bootstrapPath () . '/cache/api.json'; } -} \ No newline at end of file +}