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 method must have body #894

Closed
jweboy opened this issue Apr 20, 2018 · 6 comments
Closed

delete method must have body #894

jweboy opened this issue Apr 20, 2018 · 6 comments
Labels
bug Confirmed bug

Comments

@jweboy
Copy link

jweboy commented Apr 20, 2018

I remember that http delete method supports sending header information to complete a request without sending the body of the request body. However, when sending a delete request with fastify, it is found that it must take the body. Otherwise, there will be json error. The error is as follows:

{
    "statusCode": 400,
    "error": "Bad Request",
    "message": "Unexpected end of body input"
}

I would like to ask if this is a bug or design?

@mcollina
Copy link
Member

IMHO it's a bug.

@jsumners
Copy link
Member

Bug.

@jsumners jsumners added the bug Confirmed bug label Apr 20, 2018
@mcollina
Copy link
Member

Would you like to send a PR?

@jweboy
Copy link
Author

jweboy commented May 3, 2018

My problem has been solved, thank you.

@lependu lependu mentioned this issue Jul 8, 2018
4 tasks
@mancioshell
Copy link
Contributor

mancioshell commented Jul 13, 2018

has this issue been solved in 1.8.0 ?

@delvedor
Copy link
Member

@mancioshell yes, but we are updating the solution in #1027.

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

No branches or pull requests

5 participants