Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

there is a bug at your delete method handler #3

@vandersonos

Description

@vandersonos

It seems that you are not parsing post parameters in delete.
The solution I found is the following:
in:
protected function _parse_delete(){
parse_str(file_get_contents('php://input'), $this->_delete_args);
}
change for :
protected function _parse_delete(){
if ($this->request->format)
{
$this->request->body = file_get_contents('php://input');
}
else
{
parse_str(file_get_contents('php://input'), $this->_delete_args);
}
}

I think that this solves the problem.

Thanks for the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions