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:01:58 UTC

[jira] [Updated] (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:all-tabpanel ]

Henryk Konsek updated CAMEL-8645:
---------------------------------
    Description: 
{{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.

  was:
{{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:{{port}}/foo?httpMethodRestrict=OPTIONS").setBody().constant("foo!")}} should return the {{foo}} response to the client.


> 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)