Skip to content
Snippets Groups Projects
Unverified Commit 3a80d02b authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

bugfix: Fix headers not being sent for RunnableResponse

The callable must be called from the sendContent() method, rather than send(). Otherwise, sendHeaders() is never called.
parent c008f862
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class RunnableResponse extends Response
*
* @return self
*/
public function send(): object
public function sendContent(): object
{
return call_user_func_array($this->callable, $this->arguments);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment