summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 12:10:30 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 12:10:30 +0000
commit3975734e9c7f6679b3ff52605e3ccda103a5658a (patch)
tree0e8c79be4754dbfe40f86d05370f83f3f689eca8 /src
parent0cc42a8eebe7f052e7e22eca274eba39c5be3b02 (diff)
Remove a large portion of commented craq, and make this fit in better with the rest of the source (braces on individual lines etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6950 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_http_client.cpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp
index 9f8550886..0e942a545 100644
--- a/src/modules/m_http_client.cpp
+++ b/src/modules/m_http_client.cpp
@@ -313,10 +313,7 @@ bool HTTPSocket::OnDataReady()
this->buffer = "";
break;
}
-// while ((line = buffer.sstrstr(data, "\r\n")) != NULL)
-// {
-// if (strncmp(data, "\r\n", 2) == 0)
-
+
if (this->status == HTTP_REQSENT)
{
// HTTP reply (HTTP/1.1 200 msg)
@@ -329,22 +326,16 @@ bool HTTPSocket::OnDataReady()
if ((pos = line.find(':')) != std::string::npos)
{
-
-// char *hdata = strchr(data, ':');
-
-// if (!hdata)
-// continue;
-
-// *hdata = '\0';
-
-// response->AddHeader(data, hdata + 2);
response->AddHeader(line.substr(0, pos), line.substr(pos + 1));
-
-// data = lend + 2;
- } else
+ }
+ else
+ {
continue;
+ }
}
- } else {
+ }
+ else
+ {
this->data += data;
}
return true;