Skip to content

Commit

Permalink
Merge pull request #3 from edin/edin-patch-1
Browse files Browse the repository at this point in the history
Replaced getHost with getHttpPost to include port
  • Loading branch information
fsavina authored Jul 4, 2019
2 parents 9e55565 + 0f330f5 commit 78852c2
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 78852c2

Please sign in to comment.