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; }