diff options
author | Rider Linden <rider@lindenlab.com> | 2015-05-20 17:37:27 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-05-20 17:37:27 -0700 |
commit | c437a9c4ec865c38366c8057010d24311888ecb1 (patch) | |
tree | d505cbcd4d1455b309689d170b24485a3ff94087 /indra/llcorehttp/httpheaders.cpp | |
parent | a4741cecb2112f418c1d98ca63a261e707a856c3 (diff) |
Webprofile converted to coroutine.
Added JSON->LLSD converter
Added corohandler for JSON data
Diffstat (limited to 'indra/llcorehttp/httpheaders.cpp')
-rwxr-xr-x | indra/llcorehttp/httpheaders.cpp | 18 |
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() |