move the Link header initialisation from Router (where it does not really belong) to Webserver, where we do similar module specific initialisations prior to calling Router->Dispatch()

This commit is contained in:
zotlabs
2017-09-25 23:14:02 -07:00
parent be8061b64b
commit 9d7a88b40d
4 changed files with 36 additions and 28 deletions

View File

@@ -24,18 +24,13 @@ class Post extends \Zotlabs\Web\Controller {
}
function post() {
if(array_key_exists('data',$_REQUEST)) {
$z = new \Zotlabs\Zot\Receiver($_REQUEST['data'], get_config('system', 'prvkey'), new \Zotlabs\Zot\ZotHandler());
// notreached;
exit;
}
$z = new \Zotlabs\Zot\Receiver($_REQUEST['data'], get_config('system', 'prvkey'), new \Zotlabs\Zot\ZotHandler());
// notreached;
exit;
}
}