From 0f330f51d45fd42d2e6c61811c92c3f89d726933 Mon Sep 17 00:00:00 2001 From: Edin Omeragic Date: Sun, 23 Jun 2019 14:18:38 +0200 Subject: [PATCH] Replaced getHost with getHttpPost to include port --- src/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}