summaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-14 17:28:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-14 17:28:15 +0000
commit778f0b1af6f1a5aadf2f574b71c3637941ec2769 (patch)
treecaa6c368d80fefdcd8152842c390ffbdbb1d6ab0 /src/modules/m_httpd.cpp
parent08b7e8e60eb059a1fa40c39e3802ffcfae6b0e0d (diff)
Commit all the httpd patches i sneakily put in before 9am at the office :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5249 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index 173001cb2..9317f1992 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -229,8 +229,9 @@ class HttpSocket : public InspSocket
{
Instance->Log(DEBUG,"%d bytes to read for POST",postsize);
std::string::size_type x = headers.str().find("\r\n\r\n");
- postdata = headers.str().substr(x+5, headers.str().length());
+ postdata = headers.str().substr(x+4, headers.str().length());
/* Get content length and store */
+ Instance->Log(DEBUG,"Initial postdata: '%s'", postdata.c_str());
if (postdata.length() >= postsize)
ServeData();
}