Hi
I have discussed it on CXF IRC recently (possibly with yourself), I do
not think CXF JAX-RS wraps single header values in square brackets, as I
said on IRC it must be a debugging output,
Any HTTP header is typically represented as a key to list of values
pair, and hence you see though brackets.
Run it all through a TCP trace utility to confirm no brackets is on the wire
Cheers, Sergey
On 02/03/15 15:01, Romain Guignard wrote:
Hi guys
I have a question about REST header management and the possibility to add a
single header value.
When I put customs header on a REST response:
*response.header("Object-Meta-Owner ",
"0d1ad896-7938-11e4-a487-000c29484743"))*, it appears that the header value
is contains between brackets like this
*X-Object-Meta-Owner: [0d1ad896-7938-11e4-a487-000c29484743]*
Is there a way to put a single value header and consequently to return a
response header without these brackets?
I have the same problem by setting a “content-disposition” header that must
be directly interpreted by browsers. But, because the value is between
brackets some browsers cannot interpreted the header (it’s the case of
Chrome for example)
For information, I use CXF-RT-* version 3.0.1
Thanks in advance
Romain