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
92309230 public function build (ServerRequestInterface $ request ): OpenApiDefinition
92319231 {
92329232 $ this ->openapi ->set ("openapi " , "3.0.0 " );
9233- if (!$ this ->openapi ->has ("servers " ) && isset ( $ _SERVER [ ' REQUEST_URI ' ]) ) {
9233+ if (!$ this ->openapi ->has ("servers " )) {
92349234 $ this ->openapi ->set ("servers|0|url " , $ this ->getServerUrl ($ request ));
92359235 }
92369236 if ($ this ->records ) {
Original file line number Diff line number Diff line change @@ -9230,7 +9230,7 @@ private function getServerUrl(ServerRequestInterface $request): string
92309230 public function build (ServerRequestInterface $ request ): OpenApiDefinition
92319231 {
92329232 $ this ->openapi ->set ("openapi " , "3.0.0 " );
9233- if (!$ this ->openapi ->has ("servers " ) && isset ( $ _SERVER [ ' REQUEST_URI ' ]) ) {
9233+ if (!$ this ->openapi ->has ("servers " )) {
92349234 $ this ->openapi ->set ("servers|0|url " , $ this ->getServerUrl ($ request ));
92359235 }
92369236 if ($ this ->records ) {
You can’t perform that action at this time.
0 commit comments