You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2015/04/16 12:06:58 UTC

[jira] [Commented] (CAMEL-8645) Camel Netty component should not intercept consumers with httpMethodRestrict=OPTIONS

    [ https://issues.apache.org/jira/browse/CAMEL-8645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497864#comment-14497864 ] 

Henryk Konsek commented on CAMEL-8645:
--------------------------------------

Resolved in ca1aaa1b292ac7275853f2f27e6c5f7d5de618ac. Many thanks for @stijnvanbael for the patch!

> Camel Netty component should not intercept consumers with httpMethodRestrict=OPTIONS
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8645
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8645
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.15.1
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.15.2, 2.16.0
>
>
> {{HttpServerChannelHandler}} tries to provide default {{OPTIONS}} responses. This is nice feature, but if the {{httpMethodRestrict}} is explicitly set to {{OPTIONS}}, we Netty should allow to override the default responses.
> For example {{from("netty4-http:http://0.0.0.0:8080/foo?httpMethodRestrict=OPTIONS").setBody().constant("foo!")}} should return the {{foo}} response to the client.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)