summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpresponse.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-05-13 17:06:17 +0300
committerGitHub <noreply@github.com>2024-05-13 17:06:17 +0300
commit9013267da2269a9bd9683862b7449db1b1093afc (patch)
tree336172dfd6468e8bafa1d9c4a229624e85ffecfb /indra/llcorehttp/httpresponse.cpp
parent0cb2c511bc2a0f54eb7b3a4c2988d7ebec96e3be (diff)
parent38c2a5bde985a6a8a96d912d432f8bdf7e5b60be (diff)
Merge pull request #1373 from secondlife/marchcat/x-ws-merge
Diffstat (limited to 'indra/llcorehttp/httpresponse.cpp')
-rw-r--r--indra/llcorehttp/httpresponse.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/indra/llcorehttp/httpresponse.cpp b/indra/llcorehttp/httpresponse.cpp
index f5ad2ebd47..1436054c0b 100644
--- a/indra/llcorehttp/httpresponse.cpp
+++ b/indra/llcorehttp/httpresponse.cpp
@@ -1,6 +1,6 @@
/**
* @file httpresponse.cpp
- * @brief
+ * @brief
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
@@ -34,41 +34,41 @@ namespace LLCore
HttpResponse::HttpResponse()
- : LLCoreInt::RefCounted(true),
- mReplyOffset(0U),
- mReplyLength(0U),
- mReplyFullLength(0U),
- mBufferArray(NULL),
- mHeaders(),
- mRetries(0U),
- m503Retries(0U),
+ : LLCoreInt::RefCounted(true),
+ mReplyOffset(0U),
+ mReplyLength(0U),
+ mReplyFullLength(0U),
+ mBufferArray(NULL),
+ mHeaders(),
+ mRetries(0U),
+ m503Retries(0U),
mRequestUrl()
{}
HttpResponse::~HttpResponse()
{
- setBody(NULL);
- //setHeaders();
+ setBody(NULL);
+ //setHeaders();
}
void HttpResponse::setBody(BufferArray * ba)
{
- if (mBufferArray == ba)
- return;
-
- if (mBufferArray)
- {
- mBufferArray->release();
- }
-
- if (ba)
- {
- ba->addRef();
- }
-
- mBufferArray = ba;
+ if (mBufferArray == ba)
+ return;
+
+ if (mBufferArray)
+ {
+ mBufferArray->release();
+ }
+
+ if (ba)
+ {
+ ba->addRef();
+ }
+
+ mBufferArray = ba;
}
@@ -79,7 +79,7 @@ void HttpResponse::setHeaders(HttpHeaders::ptr_t &headers)
size_t HttpResponse::getBodySize() const
{
- return (mBufferArray) ? mBufferArray->size() : 0;
+ return (mBufferArray) ? mBufferArray->size() : 0;
}
} // end namespace LLCore