mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-21 22:46:04 +00:00
Fixes #1493
This commit is contained in:
parent
a654c7c9e5
commit
29a26c76a2
@ -344,7 +344,7 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
||||
{
|
||||
try
|
||||
{
|
||||
_response.reset();
|
||||
_response.reset(true);
|
||||
Integer icode = (Integer)_request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
|
||||
int code = icode != null ? icode : HttpStatus.INTERNAL_SERVER_ERROR_500;
|
||||
_response.setStatus(code);
|
||||
@ -528,7 +528,7 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
||||
try
|
||||
{
|
||||
Integer code=(Integer)_request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
|
||||
_response.reset();
|
||||
_response.reset(true);
|
||||
_response.setStatus(code == null ? 500 : code);
|
||||
_response.flushBuffer();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user