From 3975734e9c7f6679b3ff52605e3ccda103a5658a Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 10 May 2007 12:10:30 +0000 Subject: 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 --- src/modules/m_http_client.cpp | 25 ++++++++----------------- 1 file 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; -- cgit v1.2.3