Skip to content

Commit

Permalink
Replaced getHost with getHttpPost to include port
Browse files Browse the repository at this point in the history
  • Loading branch information
edin authored Jun 23, 2019
1 parent 9e55565 commit 0f330f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] )
Expand Down Expand Up @@ -332,4 +332,4 @@ public function getCachedApiPath ()
return $this->app->bootstrapPath () . '/cache/api.json';
}

}
}

0 comments on commit 0f330f5

Please sign in to comment.