From 092f2b181848d4575f4317267866dade7312c542 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 3 Dec 2020 19:20:59 +0000 Subject: Be more specific when a HTTP parser error happens. --- src/modules/m_httpd.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modules/m_httpd.cpp') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 330e98c6a..b4e221e62 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -264,14 +264,14 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru Close(); } - void SendHTTPError(unsigned int response) + void SendHTTPError(unsigned int response, const char* errstr = NULL) { static HTTPHeaders empty; std::string data = InspIRCd::Format( "
" "