jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [servlet-spec users] Removing headers from the response

From: 정의근 <Eugene>
Date: Tue, 23 Dec 2014 15:29:10 +0900

On Tue, Dec 23, 2014 at 8:29 AM, Stuart Douglas <sdouglas_at_redhat.com> wrote:

> At the moment there does not seem to be a way to remove a header from the
> response. It might be expected that calling
> HttpServletResponse.setHeader("name", null) will accomplish this, however
> it does not seem to be explicitly specified in the spec or the javadoc.
>
> What does everyone think about adding some clarification to the javadoc
> that explicitly states that if setHeader is called with a null value then
> the header will be cleared?
>
> Stuart
>

Is this behaviour normal in other WASes?
Our implementation ignores 'null' value.

And how can we deal with addHeader()?


Eugene