Fix App routing

This commit is contained in:
Philipp 2022-01-03 19:55:47 +01:00
parent 543e4be0a6
commit 37f850377e
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 14 additions and 10 deletions

View file

@ -23,6 +23,7 @@ namespace Friendica\Module\Special;
use Friendica\App\Router;
use Friendica\BaseModule;
use Friendica\Module\Response;
/**
* Returns the allowed HTTP methods based on the route information
@ -44,5 +45,6 @@ class Options extends BaseModule
// @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
$this->response->setHeader(implode(',', $allowedMethods), 'Allow');
$this->response->setStatus(204);
$this->response->setType(Response::TYPE_BLANK);
}
}