summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/_httpoprequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcorehttp/_httpoprequest.cpp')
-rw-r--r--indra/llcorehttp/_httpoprequest.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/llcorehttp/_httpoprequest.cpp b/indra/llcorehttp/_httpoprequest.cpp
index f35f9848ff..36955f3797 100644
--- a/indra/llcorehttp/_httpoprequest.cpp
+++ b/indra/llcorehttp/_httpoprequest.cpp
@@ -247,6 +247,25 @@ void HttpOpRequest::visitNotifier(HttpRequest * request)
response->setHeaders(mReplyHeaders);
response->setRequestURL(mReqURL);
+ std::string method("UNKNOWN");
+
+ if (mReqMethod == HOR_COPY)
+ method = "COPY";
+ else if (mReqMethod == HOR_DELETE)
+ method = "DELETE";
+ else if (mReqMethod == HOR_GET)
+ method = "GET";
+ else if (mReqMethod == HOR_MOVE)
+ method = "MOVE";
+ else if (mReqMethod == HOR_PATCH)
+ method = "PATCH";
+ else if (mReqMethod == HOR_POST)
+ method = "POST";
+ else if (mReqMethod == HOR_PUT)
+ method = "PUT";
+
+ response->setRequestMethod(method);
+
if (mReplyOffset || mReplyLength)
{
// Got an explicit offset/length in response