You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found your comment in "headers" function. It's about on line 645...
// Don't know why, but RequestHandler isn't settings
// Content-Type right; so using header() for now instead
I was looking for a method to forse json content if the url is not controller.json and I think I've found a solution also for your problem.
If I move $this->headers(); from "initialize()" to "startup()", it works, because RequestHandler->startup() overwrite your changes with his recognized extension (line 244).
If it was correct, maybe it would be useful for updating your plugin.
I've added also some tricks in other functions.
If ($ext == 'html')
$ext = 'json';
sorry for my bad english! :)
The text was updated successfully, but these errors were encountered:
Before All thanks for your useful plugin. :)
I've found your comment in "headers" function. It's about on line 645...
// Don't know why, but RequestHandler isn't settings
// Content-Type right; so using header() for now instead
I was looking for a method to forse json content if the url is not controller.json and I think I've found a solution also for your problem.
If I move $this->headers(); from "initialize()" to "startup()", it works, because RequestHandler->startup() overwrite your changes with his recognized extension (line 244).
If it was correct, maybe it would be useful for updating your plugin.
I've added also some tricks in other functions.
If ($ext == 'html')
$ext = 'json';
sorry for my bad english! :)
The text was updated successfully, but these errors were encountered: