Updating views since RequestHandler is deprecated.
The RequestHandlerComponent has been soft deprecated as of CakePHP 4.4.x and will be removed in CakePHP 5. So, the handling on Content-Type headers in responses has been moved to View classes. This is an update to the View classes to ensure the response is pushing the proper content-type.