DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28248>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28248 ------- Additional Comments From [EMAIL PROTECTED] 2005-09-28 10:34 ------- I checked Tomcat code of setHeader and it overwrites the header if it already exists but the call to setHeader("Content-Language", <value>) occurs 20 times: public void setHeader(String name, String value) { if (isCommitted()) return; if (included) return; // Ignore any call from an included servlet // This code overwrites ArrayList values = new ArrayList(); values.add(value); synchronized (headers) { headers.put(name, values); } // End of the code overwrites String match = name.toLowerCase(); if (match.equals("content-length")) { int contentLength = -1; try { contentLength = Integer.parseInt(value); } catch (NumberFormatException e) { ; } if (contentLength >= 0) setContentLength(contentLength); } else if (match.equals("content-type")) { setContentType(value); } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
