diff options
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")) { |