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

ASF GitHub Bot commented on CAMEL-12429:
----------------------------------------

GitHub user koscejev opened a pull request:

    https://github.com/apache/camel/pull/2285

    CAMEL-12429: use Restlet HeaderUtils to apply response headers

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/koscejev/camel CAMEL-12429

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2285.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2285
    
----
commit a24ee9a084256d3e1acfcff932a46589d692f7c7
Author: Anton Koscejev <anton.koscejev@...>
Date:   2018-04-10T11:11:02Z

    CAMEL-12429: use Restlet HeaderUtils to apply response headers

----


> Avoid restlet response header warnings by using Restlet HeaderUtils
> -------------------------------------------------------------------
>
>                 Key: CAMEL-12429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12429
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Anton Koscejev
>            Priority: Trivial
>
> Camel still prints warnings such as this:
>  {code}
> Addition of the standard response header "ETag" is not allowed. Please use 
> the equivalent property in the Restlet API.
> {code}
> However, these headers are actually easy to set by using Restlet's own 
> HeaderUtils, specifically via: 
> {code}
> HeaderUtils.copyResponseTransportHeaders(standardHeaders, response);
> HeaderUtils.extractEntityHeaders(standardHeaders, response.getEntity());
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to