Describe the bug
There was an older issue #12892 where this was discussed and partially fixed but only for the getPut()/getPatch() requests.
This should support getPost() method as well.
To Reproduce
Call the method $request->getPost() on a post request that contains raw json post data
Expected behavior
To return the post data no matter if this is JSON, form-data, or x-www-form-urlencoded form data
Details
- Phalcon version: 5.9
- PHP Version: 8.4
- Operating System: linux
- Installation type: Compiling from source
Describe the bug
There was an older issue #12892 where this was discussed and partially fixed but only for the
getPut()/getPatch()requests.This should support
getPost()method as well.To Reproduce
Call the method $request->getPost() on a post request that contains raw json post data
Expected behavior
To return the post data no matter if this is JSON, form-data, or x-www-form-urlencoded form data
Details