mirror of
https://github.com/friendica/friendica
synced 2025-04-22 16:30:11 +00:00
Fix App routing
This commit is contained in:
parent
543e4be0a6
commit
37f850377e
4 changed files with 14 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue