File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9230,7 +9230,7 @@ private function getServerUrl(ServerRequestInterface $request): string
9230
9230
public function build (ServerRequestInterface $ request ): OpenApiDefinition
9231
9231
{
9232
9232
$ this ->openapi ->set ("openapi " , "3.0.0 " );
9233
- if (!$ this ->openapi ->has ("servers " ) && isset ( $ _SERVER [ ' REQUEST_URI ' ]) ) {
9233
+ if (!$ this ->openapi ->has ("servers " )) {
9234
9234
$ this ->openapi ->set ("servers|0|url " , $ this ->getServerUrl ($ request ));
9235
9235
}
9236
9236
if ($ this ->records ) {
Original file line number Diff line number Diff line change @@ -9230,7 +9230,7 @@ private function getServerUrl(ServerRequestInterface $request): string
9230
9230
public function build (ServerRequestInterface $ request ): OpenApiDefinition
9231
9231
{
9232
9232
$ this ->openapi ->set ("openapi " , "3.0.0 " );
9233
- if (!$ this ->openapi ->has ("servers " ) && isset ( $ _SERVER [ ' REQUEST_URI ' ]) ) {
9233
+ if (!$ this ->openapi ->has ("servers " )) {
9234
9234
$ this ->openapi ->set ("servers|0|url " , $ this ->getServerUrl ($ request ));
9235
9235
}
9236
9236
if ($ this ->records ) {
You can’t perform that action at this time.
0 commit comments