1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 01:03:12 +02:00

Fix reading post data in m_httpd

This commit is contained in:
Adam
2013-08-23 04:13:08 -04:00
parent 4d1492d444
commit 3bc2db561b
+2 -5
View File
@@ -47,7 +47,6 @@ class MyHTTPClient : public HTTPClient
Anope::string inbuf;
unsigned content_length;
Anope::string post_data;
enum
{
@@ -128,11 +127,9 @@ class MyHTTPClient : public HTTPClient
if (!this->header_done)
return true;
this->post_data += inbuf;
if (this->post_data.length() >= this->content_length)
if (this->inbuf.length() >= this->content_length)
{
sepstream sep(this->post_data, '&');
sepstream sep(this->inbuf, '&');
Anope::string token;
while (sep.GetToken(token))