Skip to content

Commit 87fa693

Browse files
committed
use PSR-7 for OpenAPI
1 parent f018bc9 commit 87fa693

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api.include.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)