Details
Description
The way that camel-platform-http-vertx tries to determine whether a request can / should have a body is a little bit flawed.
There is a HttpMethod enum which controls which HTTP method is allowed a body:
This is then checked in the platform-http consumer:
The problem is that it's not in line with how Vert.x web works. It already has its own logic for this. If the request Content-Type is application/x-www-form-urlencoded, then only POST, PUT, PATCH or DELETE is allowed a body. Otherwise no restriction is applied.
So I think we should drop checking with 'canHaveBody' and just let Vert.x do its own validation.
Attachments
Issue Links
- links to