mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
support server cookie
This commit is contained in:
parent
886ad3b919
commit
7c4fa4f887
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user