Set response type ignored on controller action return value #5

Closed
opened 2016-12-21 00:56:19 +00:00 by jamie · 6 comments
jamie commented 2016-12-21 00:56:19 +00:00 (Migrated from git.hazaar.io)

Even if there is a $this->request->setResponseType('json'); call in a controller action and the action happens to return a non-JSONable result, the response type will not be used. So in the case of an action returning false, it should still return that as JSON.

Even if there is a `$this->request->setResponseType('json');` call in a controller action and the action happens to return a non-JSONable result, the response type will not be used. So in the case of an action returning false, it should still return that as JSON.
jamie commented 2017-03-28 21:47:45 +00:00 (Migrated from git.hazaar.io)

added ~131 label

added ~131 label
jamie commented 2017-05-09 05:30:20 +00:00 (Migrated from git.hazaar.io)

added ~132 and removed ~131 labels

added ~132 and removed ~131 labels
jamie commented 2017-05-09 06:36:15 +00:00 (Migrated from git.hazaar.io)

I'm going to close this because I think it is actually work as desired.

I'm going to close this because I think it is actually work as desired.
jamie commented 2017-05-09 06:36:15 +00:00 (Migrated from git.hazaar.io)

closed

closed
jamie commented 2017-05-09 06:36:18 +00:00 (Migrated from git.hazaar.io)

reopened

reopened
jamie commented 2017-05-09 06:36:35 +00:00 (Migrated from git.hazaar.io)

closed

closed
jamie self-assigned this 2025-09-04 01:16:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#5
No description provided.