mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Merge pull request #14326 from annando/issue-14325
Issue 14325: Execute "rawContent" only for GET requests
This commit is contained in:
commit
24f6239c94
1 changed files with 4 additions and 4 deletions
|
@ -224,17 +224,17 @@ abstract class BaseModule implements ICanHandleRequests
|
||||||
switch ($this->args->getMethod()) {
|
switch ($this->args->getMethod()) {
|
||||||
case Router::DELETE:
|
case Router::DELETE:
|
||||||
$this->delete($request);
|
$this->delete($request);
|
||||||
break;
|
return $this->response->generate();
|
||||||
case Router::PATCH:
|
case Router::PATCH:
|
||||||
$this->patch($request);
|
$this->patch($request);
|
||||||
break;
|
return $this->response->generate();
|
||||||
case Router::POST:
|
case Router::POST:
|
||||||
Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request);
|
Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request);
|
||||||
$this->post($request);
|
$this->post($request);
|
||||||
break;
|
return $this->response->generate();
|
||||||
case Router::PUT:
|
case Router::PUT:
|
||||||
$this->put($request);
|
$this->put($request);
|
||||||
break;
|
return $this->response->generate();
|
||||||
}
|
}
|
||||||
|
|
||||||
$timestamp = microtime(true);
|
$timestamp = microtime(true);
|
||||||
|
|
Loading…
Reference in a new issue