Fixes #638 - ConnectHandler responses should have Content-Length.
Added Content-Length: 0 to the responses.
This commit is contained in:
parent
b9a27f792a
commit
2b539b6383
|
@ -362,6 +362,7 @@ public class ConnectHandler extends HandlerWrapper
|
|||
try
|
||||
{
|
||||
response.setStatus(statusCode);
|
||||
response.setContentLength(0);
|
||||
if (statusCode != HttpServletResponse.SC_OK)
|
||||
response.setHeader(HttpHeader.CONNECTION.asString(), HttpHeaderValue.CLOSE.asString());
|
||||
response.getOutputStream().close();
|
||||
|
|
Loading…
Reference in New Issue