Jetty9 - Improved exception message.

This commit is contained in:
Simone Bordet 2012-08-23 16:09:10 +02:00
parent 85ffa8807e
commit 3b9baad1f0
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ public class Response implements HttpServletResponse
long written = _out.getWritten();
if (written > len)
throw new IllegalArgumentException("setContent(" + len + ") when already written " + written);
throw new IllegalArgumentException("setContentLength(" + len + ") when already written " + written);
_contentLength = len;
_fields.putLongField(HttpHeader.CONTENT_LENGTH.toString(), len);