Do not reset servlet response in sendRedirect() otherwise cookies are lost
This commit is contained in:
parent
bb3a080164
commit
9e0dae779c
1 changed files with 0 additions and 1 deletions
|
@ -301,7 +301,6 @@ public abstract class AbstractServletClient extends HttpServlet {
|
||||||
loc.append (url);
|
loc.append (url);
|
||||||
location = loc.toString ();
|
location = loc.toString ();
|
||||||
}
|
}
|
||||||
res.reset ();
|
|
||||||
// send status code 303 for HTTP 1.1, 302 otherwise
|
// send status code 303 for HTTP 1.1, 302 otherwise
|
||||||
if (isOneDotOne (req.getProtocol ()))
|
if (isOneDotOne (req.getProtocol ()))
|
||||||
res.setStatus (res.SC_SEE_OTHER);
|
res.setStatus (res.SC_SEE_OTHER);
|
||||||
|
|
Loading…
Add table
Reference in a new issue