Skip to content

delete http method will attach an empty object in http body #54

@kiyonlin

Description

@kiyonlin

Hi!
When I use delete method, the http body will attach an empty object. It is not the same as GuzzleHttp.

    function delete($url, $params = [])
    {
        return $this->send('DELETE', $url, [
            $this->bodyFormat => $params,
        ]);
    }

Maybe takeaway $this->bodyFormat => $params, when the $params is an empty array can fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions