I have a REST resource which consumes multiple Http methods (for example GET, POST and PUT). If I send OPTIONS request to resource and I expect to receive Allow Http header with this content:
Allow: GET,POST,PUT,OPTIONS
That does not happen because I receive header which contains only two methods one of them is OPTIONS.
Allow: GET,OPTIONS
I have try multiple implementations and only camel-restlet works as I expect. These components contain bug:
- camel-undertow
- camel-servlet
- camel-jetty
- camel-netty4-http
Reproducer: https://github.com/osmman/camel/commit/0411f070f75e5b0a26a4b9ea371824f648d9b508
restConfiguration().component("undertow"); rest("/v1/") .get("resource") .to("mock:options") .post("resource") .to("mock:options") .put("resource") .to("mock:options);