summaryrefslogtreecommitdiffstats
path: root/src/HTTP/HTTPMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTTP/HTTPMessage.cpp')
-rw-r--r--src/HTTP/HTTPMessage.cpp23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/HTTP/HTTPMessage.cpp b/src/HTTP/HTTPMessage.cpp
index 827842ef9..56ed82571 100644
--- a/src/HTTP/HTTPMessage.cpp
+++ b/src/HTTP/HTTPMessage.cpp
@@ -12,8 +12,8 @@
// Disable MSVC warnings:
#if defined(_MSC_VER)
- #pragma warning(push)
- #pragma warning(disable:4355) // 'this' : used in base member initializer list
+#pragma warning(push)
+#pragma warning(disable : 4355) // 'this' : used in base member initializer list
#endif
@@ -24,8 +24,7 @@
// cHTTPMessage:
cHTTPMessage::cHTTPMessage(eKind a_Kind) :
- m_Kind(a_Kind),
- m_ContentLength(AString::npos)
+ m_Kind(a_Kind), m_ContentLength(AString::npos)
{
}
@@ -104,11 +103,8 @@ void cHTTPOutgoingResponse::AppendToData(AString & a_DataStream) const
////////////////////////////////////////////////////////////////////////////////
// cHTTPIncomingRequest:
-cHTTPIncomingRequest::cHTTPIncomingRequest(const AString & a_Method, const AString & a_URL):
- Super(mkRequest),
- m_Method(a_Method),
- m_URL(a_URL),
- m_HasAuth(false)
+cHTTPIncomingRequest::cHTTPIncomingRequest(const AString & a_Method, const AString & a_URL) :
+ Super(mkRequest), m_Method(a_Method), m_URL(a_URL), m_HasAuth(false)
{
}
@@ -135,10 +131,7 @@ AString cHTTPIncomingRequest::GetURLPath(void) const
void cHTTPIncomingRequest::AddHeader(const AString & a_Key, const AString & a_Value)
{
- if (
- (NoCaseCompare(a_Key, "Authorization") == 0) &&
- (strncmp(a_Value.c_str(), "Basic ", 6) == 0)
- )
+ if ((NoCaseCompare(a_Key, "Authorization") == 0) && (strncmp(a_Value.c_str(), "Basic ", 6) == 0))
{
AString UserPass = Base64Decode(a_Value.substr(6));
size_t idxCol = UserPass.find(':');
@@ -155,7 +148,3 @@ void cHTTPIncomingRequest::AddHeader(const AString & a_Key, const AString & a_Va
}
Super::AddHeader(a_Key, a_Value);
}
-
-
-
-