From 778f0b1af6f1a5aadf2f574b71c3637941ec2769 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Sep 2006 17:28:15 +0000 Subject: 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 --- src/modules/m_httpd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3