From 1b4d58b29020a29f5ba30dfb97bbf8bfe9171a8e Mon Sep 17 00:00:00 2001 From: pingfang Date: Wed, 25 Mar 2020 18:49:07 +0800 Subject: [PATCH] support server cookie --- servant/servant/TarsCookie.h | 2 +- servant/servant/TarsCurrent.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servant/servant/TarsCookie.h b/servant/servant/TarsCookie.h index b5da2c2..dc36d4c 100644 --- a/servant/servant/TarsCookie.h +++ b/servant/servant/TarsCookie.h @@ -53,7 +53,7 @@ public: /** * 获取cookie */ - static const map & getCookie() + static map & getCookie() { ServantProxyThreadData * td = ServantProxyThreadData::getData(); assert(NULL != td); diff --git a/servant/servant/TarsCurrent.h b/servant/servant/TarsCurrent.h index bc15619..9adc1bd 100644 --- a/servant/servant/TarsCurrent.h +++ b/servant/servant/TarsCurrent.h @@ -234,7 +234,7 @@ public: /** * 获取cookie */ - const map & getCookie() + map & getCookie() { return _cookie; }