support server cookie

This commit is contained in:
pingfang 2020-03-25 17:44:06 +08:00
parent 7c4fa4f887
commit 22fb8900c9
2 changed files with 2 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#include "servant/AppProtocol.h"
#include "servant/BaseF.h"
#include "servant/TarsNodeF.h"
#include "servant/TarsCookie.h"
#ifdef _USE_OPENTRACKING
#include "servant/text_map_carrier.h"
#endif
@ -822,7 +823,6 @@ void ServantHandle::handleTarsProtocol(const TarsCurrentPtr &current)
//处理染色消息
string dyeingKey = "";
TarsDyeingSwitch dyeSwitch;
if (processDye(current, dyeingKey))
{
dyeSwitch.enableDyeing(dyeingKey);

View File

@ -188,9 +188,8 @@ protected:
/**
* cookie
*
*/
bool processCookie(const TarsCurrentPtr &current, string &cookie);
bool processCookie(const TarsCurrentPtr &current, map<string, string> &cookie);
/**
* set调用合法性