This commit is contained in:
Redkale
2020-07-30 18:02:29 +08:00
parent 2b7676449d
commit fd2e84f781

View File

@@ -110,6 +110,7 @@ public class HttpRequest extends Request<HttpContext> {
this.contentType = req.getContentType();
this.remoteAddr = req.getRemoteAddr();
this.requestURI = req.getRequestURI();
this.method = "POST";
if (req.getSessionid() != null && !req.getSessionid().isEmpty()) {
this.cookies = new HttpCookie[]{new HttpCookie(SESSIONID_NAME, req.getSessionid())};
}