]> git.mxchange.org Git - friendica.git/commitdiff
Added documentation
authorMichael <heluecht@pirati.ca>
Wed, 9 Jun 2021 07:44:19 +0000 (07:44 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 Jun 2021 07:44:19 +0000 (07:44 +0000)
src/App/Module.php

index 4c61b44559d54a1d1fd278e85ed7bef3c422a677..b2cc8210e374786e1fb5fb88ba499fd2c79c2b87 100644 (file)
@@ -265,6 +265,8 @@ class Module
                        $logger->debug('index.php: page not found.', ['request_uri' => $server['REQUEST_URI'], 'address' => $server['REMOTE_ADDR'], 'query' => $server['QUERY_STRING']]);
                }
 
+               // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS
+               // @todo Check allowed methods per requested path
                if ($server['REQUEST_METHOD'] === Router::OPTIONS) {
                        header('HTTP/1.1 204 No Content');
                        header('Allow: ' . implode(',', Router::ALLOWED_METHODS));