diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-14 11:25:37 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-14 11:25:37 +0000 |
commit | a19512aff37629676ba3d8851178f9d0a7c8d603 (patch) | |
tree | 61d817c711623d126537f3b9f143c7cc0b5a6eaa /src/modules/m_httpd.cpp | |
parent | 663958cfd699855fede3704de5620e505a604d04 (diff) |
Only initialise request type once
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5244 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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")) { |