Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kiyonlin opened this issue Dec 5, 2017 · 0 comments
Open

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

kiyonlin opened this issue Dec 5, 2017 · 0 comments

Comments

@kiyonlin
Copy link

kiyonlin commented Dec 5, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant