summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpheaders.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2015-05-20 17:37:27 -0700
committerRider Linden <rider@lindenlab.com>2015-05-20 17:37:27 -0700
commitc437a9c4ec865c38366c8057010d24311888ecb1 (patch)
treed505cbcd4d1455b309689d170b24485a3ff94087 /indra/llcorehttp/httpheaders.cpp
parenta4741cecb2112f418c1d98ca63a261e707a856c3 (diff)
Webprofile converted to coroutine.
Added JSON->LLSD converter Added corohandler for JSON data
Diffstat (limited to 'indra/llcorehttp/httpheaders.cpp')
-rwxr-xr-xindra/llcorehttp/httpheaders.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpheaders.cpp b/indra/llcorehttp/httpheaders.cpp
index 73c92c8f10..e03b1b080d 100755
--- a/indra/llcorehttp/httpheaders.cpp
+++ b/indra/llcorehttp/httpheaders.cpp
@@ -118,6 +118,24 @@ const std::string * HttpHeaders::find(const std::string &name) const
return NULL;
}
+void HttpHeaders::remove(const char *name)
+{
+ remove(std::string(name));
+}
+
+void HttpHeaders::remove(const std::string &name)
+{
+ iterator iend(end());
+ for (iterator iter(begin()); iend != iter; ++iter)
+ {
+ if ((*iter).first == name)
+ {
+ mHeaders.erase(iter);
+ return;
+ }
+ }
+}
+
// Standard Iterators
HttpHeaders::iterator HttpHeaders::begin()