This commit is contained in:
Luffy 2025-01-14 21:56:48 +08:00 committed by GitHub
parent 8035b22347
commit 8ff55f5266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ class Request
* @param string|null $default
* @return string|null
*/
public function getServer(string $name, string $default = null): ?string
public function getServer(string $name, ?string $default = null): ?string
{
return $_SERVER[$name] ?? $default;
}

View File

@ -41,7 +41,7 @@ class Feed extends Contents
*/
public function execute()
{
$feedPath = $this->request->get('feed');
$feedPath = $this->request->get('feed', '/');
$feedType = FeedGenerator::RSS2;
$feedContentType = 'application/rss+xml';
$currentFeedUrl = $this->options->feedUrl;