support server cookie

This commit is contained in:
pingfang 2020-03-25 17:28:25 +08:00
parent 886ad3b919
commit 7c4fa4f887

View File

@ -991,7 +991,9 @@ void ServantProxy::checkCookie(RequestPacket& req)
assert(pSptd != NULL); assert(pSptd != NULL);
if(pSptd->_hasCookie) if(pSptd->_hasCookie)
{ {
req.context[ServantProxy::STATUS_COOKIE] = pSptd->_cookie; Cookie stCookie;
stCookie.cookie = pSptd->_cookie;
req.context[ServantProxy::STATUS_COOKIE] = stCookie.writeToJsonString();
} }
} }