The specification (up to the 3.0 candidate) does not say (as far as I can tell). In the absence of canonical information, you might be at the mercy of the implementation.
The source code for the reference implementation is mentioned on the Sun Servlet page:
The reference implementation is included in the Java EE 5 SDK and also in the open-source Java Platform, Enterprise Edition (Java EE) application server, available through the GlassFish project, on java.net. The reference implementation source code for Servlet technology is available from the svn repository on java.net. Additional information on all webtier technologies in GlassFish can be found at the GlassFish Webtier page.
Checking the behaviour may be as close to a definitive answer as you'll get.