summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerdisplayname.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-05-06 16:31:39 -0700
committerJames Cook <james@lindenlab.com>2010-05-06 16:31:39 -0700
commit17e2739a363447f5e12c9d84ab319f51e99e942a (patch)
treeb2b0993482c25ef8dba788a0e93ff590a99ed60c /indra/newview/llviewerdisplayname.cpp
parentc0257c7fff8dacc83e69d39afcf522b09bdf28e9 (diff)
WIP Add default name expiration on set response, need headers later
Diffstat (limited to 'indra/newview/llviewerdisplayname.cpp')
-rw-r--r--indra/newview/llviewerdisplayname.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llviewerdisplayname.cpp b/indra/newview/llviewerdisplayname.cpp
index a6ac2587db..4122a112e5 100644
--- a/indra/newview/llviewerdisplayname.cpp
+++ b/indra/newview/llviewerdisplayname.cpp
@@ -148,6 +148,8 @@ public:
}
};
+#include "llsdserialize.h"
+
class LLDisplayNameUpdate : public LLHTTPNode
{
/*virtual*/ void post(
@@ -164,6 +166,15 @@ class LLDisplayNameUpdate : public LLHTTPNode
// Inject the new name data into cache
LLAvatarName av_name;
av_name.fromLLSD( name_data );
+
+ // Name expiration time may be provided in headers, or we may use a
+ // default value
+ // JAMESDEBUG TODO: get actual headers out of ResponsePtr
+ //LLSD headers = response->mHeaders;
+ LLSD headers;
+ av_name.mExpires =
+ LLAvatarNameCache::nameExpirationFromHeaders(headers);
+
LLAvatarNameCache::insert(agent_id, av_name);
// force name tag to update