summaryrefslogtreecommitdiff
path: root/indra/llmessage/llhttpclient.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-05-24 08:53:21 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-05-24 08:53:21 -0400
commit6c56c77ec575141963c5de8dfa228253fe175bc3 (patch)
tree65ec3b7388af37390fe73ca4b3eb23d10ef92c3a /indra/llmessage/llhttpclient.cpp
parentb0303445f1af83057e4d27d763f7b860f20f0143 (diff)
SH-4027 WIP - initial implementation of item update via AIS.
Diffstat (limited to 'indra/llmessage/llhttpclient.cpp')
-rwxr-xr-xindra/llmessage/llhttpclient.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp
index 5830a5eca0..53cef54559 100755
--- a/indra/llmessage/llhttpclient.cpp
+++ b/indra/llmessage/llhttpclient.cpp
@@ -304,7 +304,7 @@ static void request(
gMessageSystem->mPort));
}
- if (method == HTTP_PUT || method == HTTP_POST)
+ if (method == HTTP_PUT || method == HTTP_POST || method == HTTP_PATCH)
{
if(!headers.has(HTTP_OUT_HEADER_CONTENT_TYPE))
{
@@ -556,6 +556,16 @@ void LLHTTPClient::put(
request(url, HTTP_PUT, new LLSDInjector(body), responder, timeout, headers);
}
+void LLHTTPClient::patch(
+ const std::string& url,
+ const LLSD& body,
+ ResponderPtr responder,
+ const LLSD& headers,
+ const F32 timeout)
+{
+ request(url, HTTP_PATCH, new LLSDInjector(body), responder, timeout, headers);
+}
+
void LLHTTPClient::post(
const std::string& url,
const LLSD& body,