camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Keen (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-7073) camel-restlet - request headers are sent in response
Date Mon, 16 Dec 2013 15:55:09 GMT

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

David Keen edited comment on CAMEL-7073 at 12/16/13 3:54 PM:
-------------------------------------------------------------

I have opened a pull request with a fix for this issue including a unit test: https://github.com/apache/camel/pull/69.

I can create and attach a patch if you prefer.


was (Author: davidkeen):
I have opened a pull request with a fix for this issue: https://github.com/apache/camel/pull/69.

I can create and attach a patch if you prefer.

> camel-restlet - request headers are sent in response
> ----------------------------------------------------
>
>                 Key: CAMEL-7073
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7073
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.12.2
>            Reporter: David Keen
>
> The fix applied in CAMEL-6879 causes the request headers to be sent back in the response.
> DefaultRestletBinding copies the request headers in 'org.restlet.http.headers' header
to the response headers in 'org.restlet.http.headers'.
> This causes problems for things like Content-Type header which is a valid request and
response header and so the response is sent with the request content-type. Eg, POST requests
that should receive JSON in response and send using content-type application/x-www-form-urlencoded
will be sent back a response with the same content-type which doesn't make sense.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message