diff options
| author | 2007-05-10 12:10:30 +0000 | |
|---|---|---|
| committer | 2007-05-10 12:10:30 +0000 | |
| commit | 3975734e9c7f6679b3ff52605e3ccda103a5658a (patch) | |
| tree | 0e8c79be4754dbfe40f86d05370f83f3f689eca8 /src/modules/m_http_client.cpp | |
| parent | Update this to use the new copyright header (diff) | |
| download | inspircd++-3975734e9c7f6679b3ff52605e3ccda103a5658a.tar.gz inspircd++-3975734e9c7f6679b3ff52605e3ccda103a5658a.tar.bz2 inspircd++-3975734e9c7f6679b3ff52605e3ccda103a5658a.zip | |
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/modules/m_http_client.cpp')
| -rw-r--r-- | src/modules/m_http_client.cpp | 25 |
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; |
