From a19512aff37629676ba3d8851178f9d0a7c8d603 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Sep 2006 11:25:37 +0000 Subject: Only initialise request type once git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5244 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index e12ca3f3d..276bc915f 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -198,9 +198,12 @@ class HttpSocket : public InspSocket if (headers.str().find("\r\n\r\n") != std::string::npos) { - headers >> request_type; - headers >> uri; - headers >> http_version; + if (request_type == "") + { + headers >> request_type; + headers >> uri; + headers >> http_version; + } if ((InternalState == HTTP_SERVE_WAIT_REQUEST) && (request_type == "POST")) { -- cgit v1.2.3