I should have mentioned that I am using the Servlet component and Camel
2.15.1.

As a quick hack I added the following code to the end of the method
ServletRestServletResolveConsumerStrategy.resolve(HttpServletRequest
request, Map<String, HttpConsumer> consumers) 

        
        if (answer == null && method.equals("OPTIONS") && candidates.size()
> 0) {
            // If method was OPTIONS then just return first consumer
            answer = candidates.get(0);
        }

Added just before the final return answer;



--
View this message in context: 
http://camel.465427.n5.nabble.com/HTTP-OPTIONS-tp5766194p5766202.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to