both does the same thing ,however there are some internal headers so take a
look at them in AbstractResource,if your header is one of those you can't
use it manually


On Thu, Apr 25, 2013 at 1:24 AM, smallufo <[email protected]> wrote:

> Hi
> I just take "Cache-Control":"no-cache" for example.
> What if I want to add additional header information, which is correct ?
>
> data.getHeaders().addHeader("key", "value");  ?
> or
> ((WebResponse) attributes.getResponse()).addHeader("key" , "value"); ?
>
> Thanks.
>



-- 
regards,

Vineet Semwal

Reply via email to