I'm using Glassfish 3.1. When invoke HttpServletRequest.getHeaders(), which
suppose to return an enumeration of multiple entries of the same header,
"Returns all the values of the specified request header as an Enumeration of
String objects." as the specification describes here
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletRequest.html
.
However, when invoking the method, it returns only the value of the first
entry. For example, if a request like:
get localhost:8080
accept-langauge: L1
accept-langauge: L2
The server side code getHeaders("accept-langauge") can only get "L1"
Is it a bug of implemeting the specification?
--
[Message sent by forum member 'paulur']
View Post: http://forums.java.net/node/859967