h***@helma.org
2009-11-26 10:24:15 UTC
Author: hannes
Date: 2009-11-26 11:24:15 +0100 (Thu, 26 Nov 2009)
New Revision: 9998
Modified:
helma/helma/trunk/src/helma/servlet/AbstractServletClient.java
Log:
Don't try to generate error page if the response has already been committed.
Details at http://dev.helma.org/trac/helma/changeset/9998
Modified: helma/helma/trunk/src/helma/servlet/AbstractServletClient.java
===================================================================
--- helma/helma/trunk/src/helma/servlet/AbstractServletClient.java 2009-11-25 13:25:11 UTC (rev 9997)
+++ helma/helma/trunk/src/helma/servlet/AbstractServletClient.java 2009-11-26 10:24:15 UTC (rev 9998)
@@ -362,6 +362,9 @@
void sendError(HttpServletResponse response, int code, String message)
throws IOException {
+ if (response.isCommitted()) {
+ return;
+ }
response.reset();
response.setStatus(code);
response.setContentType("text/html");
Date: 2009-11-26 11:24:15 +0100 (Thu, 26 Nov 2009)
New Revision: 9998
Modified:
helma/helma/trunk/src/helma/servlet/AbstractServletClient.java
Log:
Don't try to generate error page if the response has already been committed.
Details at http://dev.helma.org/trac/helma/changeset/9998
Modified: helma/helma/trunk/src/helma/servlet/AbstractServletClient.java
===================================================================
--- helma/helma/trunk/src/helma/servlet/AbstractServletClient.java 2009-11-25 13:25:11 UTC (rev 9997)
+++ helma/helma/trunk/src/helma/servlet/AbstractServletClient.java 2009-11-26 10:24:15 UTC (rev 9998)
@@ -362,6 +362,9 @@
void sendError(HttpServletResponse response, int code, String message)
throws IOException {
+ if (response.isCommitted()) {
+ return;
+ }
response.reset();
response.setStatus(code);
response.setContentType("text/html");