jsr369-experts@servlet-spec.java.net

[jsr369-experts] Removing headers from the response

From: Stuart Douglas <sdouglas_at_redhat.com>
Date: Mon, 22 Dec 2014 18:29:16 -0500 (EST)

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