From 7c4fa4f887789892e56303da463110d3b02e2c5a Mon Sep 17 00:00:00 2001 From: pingfang Date: Wed, 25 Mar 2020 17:28:25 +0800 Subject: [PATCH] support server cookie --- servant/libservant/ServantProxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servant/libservant/ServantProxy.cpp b/servant/libservant/ServantProxy.cpp index c861797..96b9e7d 100644 --- a/servant/libservant/ServantProxy.cpp +++ b/servant/libservant/ServantProxy.cpp @@ -991,7 +991,9 @@ void ServantProxy::checkCookie(RequestPacket& req) assert(pSptd != NULL); if(pSptd->_hasCookie) { - req.context[ServantProxy::STATUS_COOKIE] = pSptd->_cookie; + Cookie stCookie; + stCookie.cookie = pSptd->_cookie; + req.context[ServantProxy::STATUS_COOKIE] = stCookie.writeToJsonString(); } }