forked from GNUsocial/gnu-social
make HEAD work for AtomPubShowSubscription
This commit is contained in:
parent
11a0bde459
commit
34b8eb207d
@ -105,7 +105,9 @@ class AtompubshowsubscriptionAction extends ApiAuthAction
|
|||||||
|
|
||||||
function handle($argarray=null)
|
function handle($argarray=null)
|
||||||
{
|
{
|
||||||
|
parent::handle($argarray);
|
||||||
switch ($_SERVER['REQUEST_METHOD']) {
|
switch ($_SERVER['REQUEST_METHOD']) {
|
||||||
|
case 'HEAD':
|
||||||
case 'GET':
|
case 'GET':
|
||||||
$this->showSubscription();
|
$this->showSubscription();
|
||||||
break;
|
break;
|
||||||
@ -179,8 +181,6 @@ class AtompubshowsubscriptionAction extends ApiAuthAction
|
|||||||
/**
|
/**
|
||||||
* Return last modified, if applicable.
|
* Return last modified, if applicable.
|
||||||
*
|
*
|
||||||
* MAY override
|
|
||||||
*
|
|
||||||
* @return string last modified http header
|
* @return string last modified http header
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user