419937 - Request isSecure cleared on recycle

This commit is contained in:
Greg Wilkins 2013-10-21 13:25:47 +11:00
parent 24c1b30495
commit 565bd3b331
1 changed files with 7 additions and 2 deletions

View File

@ -1500,6 +1500,9 @@ public class Request implements HttpServletRequest
/* ------------------------------------------------------------ */
protected void recycle()
{
if (_context != null)
throw new IllegalStateException("Request in context!");
if (_inputState == __READER)
{
try
@ -1515,6 +1518,7 @@ public class Request implements HttpServletRequest
}
}
_dispatcherType=null;
setAuthentication(Authentication.NOT_CHECKED);
getHttpChannelState().recycle();
if (_async!=null)
@ -1522,8 +1526,6 @@ public class Request implements HttpServletRequest
_async=null;
_asyncSupported = true;
_handled = false;
if (_context != null)
throw new IllegalStateException("Request in context!");
if (_attributes != null)
_attributes.clearAttributes();
_characterEncoding = null;
@ -1532,7 +1534,9 @@ public class Request implements HttpServletRequest
_cookies.reset();
_cookiesExtracted = false;
_context = null;
_newContext=false;
_serverName = null;
_httpMethod=null;
_httpMethodString = null;
_pathInfo = null;
_port = 0;
@ -1541,6 +1545,7 @@ public class Request implements HttpServletRequest
_queryString = null;
_requestedSessionId = null;
_requestedSessionIdFromCookie = false;
_secure=false;
_session = null;
_sessionManager = null;
_requestURI = null;