Skip to content

[BUG]: $request->getPost() does not return JSON data #16792

@raicabogdan

Description

@raicabogdan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0The issues we want to solve in the 5.0 releasebugA bug reportstatus: lowLow

    Type

    No fields configured for Bug.

    Projects

    Status
    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions